mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-22 05:37:56 +00:00
fix(build): restore polyfill shims for shared folder imports
This commit is contained in:
@@ -50,6 +50,10 @@ export default defineConfig(() => ({
|
||||
"@local/types": path.resolve(__dirname, "../shared/types"),
|
||||
"@pezkuwi/components": path.resolve(__dirname, "../shared/components"),
|
||||
"@shared": path.resolve(__dirname, "../shared"),
|
||||
// Node polyfill shims for shared folder (outside web workspace)
|
||||
'vite-plugin-node-polyfills/shims/buffer': path.resolve(__dirname, './src/polyfills/buffer-shim.ts'),
|
||||
'vite-plugin-node-polyfills/shims/global': path.resolve(__dirname, './src/polyfills/global-shim.ts'),
|
||||
'vite-plugin-node-polyfills/shims/process': path.resolve(__dirname, './src/polyfills/process-shim.ts'),
|
||||
},
|
||||
dedupe: ['react', 'lucide-react', 'sonner', '@pezkuwi/util-crypto', '@pezkuwi/util', '@pezkuwi/api', '@pezkuwi/extension-dapp', '@pezkuwi/keyring'],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user