mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 04:27:56 +00:00
fix(web): Add vite alias for @pezkuwi/extension-* packages
The @pezkuwi/extension-dapp and extension-inject packages have incorrect package structure - build directory should be the package root. Added vite aliases to point directly to the build directories until packages are republished with correct structure.
This commit is contained in:
@@ -43,6 +43,9 @@ export default defineConfig(() => ({
|
||||
"@local/types": path.resolve(__dirname, "../shared/types"),
|
||||
"@pezkuwi/components": path.resolve(__dirname, "../shared/components"),
|
||||
"@shared": path.resolve(__dirname, "../shared"),
|
||||
// Fix for incorrectly published @pezkuwi packages (build dir should be package root)
|
||||
"@pezkuwi/extension-dapp": path.resolve(__dirname, "../../node_modules/@pezkuwi/extension-dapp/build"),
|
||||
"@pezkuwi/extension-inject": path.resolve(__dirname, "../../node_modules/@pezkuwi/extension-inject/build"),
|
||||
},
|
||||
dedupe: ['react', 'lucide-react', 'sonner', '@pezkuwi/util-crypto', '@pezkuwi/util', '@pezkuwi/api', '@pezkuwi/extension-dapp', '@pezkuwi/keyring'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user