mirror of
https://github.com/pezkuwichain/pwap.git
synced 2026-04-30 20:47:54 +00:00
Fix web build polyfills and mobile ESLint ignore patterns
This commit is contained in:
@@ -12,9 +12,13 @@ export default tseslint.config(
|
|||||||
"dist/**",
|
"dist/**",
|
||||||
"coverage/**",
|
"coverage/**",
|
||||||
"jest.config.js",
|
"jest.config.js",
|
||||||
|
"jest.config.cjs",
|
||||||
"jest.setup.js",
|
"jest.setup.js",
|
||||||
|
"jest.setup.cjs",
|
||||||
"metro.config.js",
|
"metro.config.js",
|
||||||
"eslint.config.js",
|
"eslint.config.js",
|
||||||
|
"babel.config.js",
|
||||||
|
"**/*.cjs",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
// Config for React Native app files
|
// Config for React Native app files
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ export default defineConfig(() => ({
|
|||||||
"@local/types": path.resolve(__dirname, "../shared/types"),
|
"@local/types": path.resolve(__dirname, "../shared/types"),
|
||||||
"@pezkuwi/components": path.resolve(__dirname, "../shared/components"),
|
"@pezkuwi/components": path.resolve(__dirname, "../shared/components"),
|
||||||
"@shared": path.resolve(__dirname, "../shared"),
|
"@shared": path.resolve(__dirname, "../shared"),
|
||||||
|
// Node polyfill shims for shared folder (outside web workspace)
|
||||||
|
'vite-plugin-node-polyfills/shims/buffer': path.resolve(__dirname, './src/tests/mocks/buffer-shim.ts'),
|
||||||
|
'vite-plugin-node-polyfills/shims/global': path.resolve(__dirname, './src/tests/mocks/global-shim.ts'),
|
||||||
|
'vite-plugin-node-polyfills/shims/process': path.resolve(__dirname, './src/tests/mocks/process-shim.ts'),
|
||||||
},
|
},
|
||||||
dedupe: ['react', 'lucide-react', 'sonner', '@pezkuwi/util-crypto', '@pezkuwi/util', '@pezkuwi/api', '@pezkuwi/extension-dapp', '@pezkuwi/keyring'],
|
dedupe: ['react', 'lucide-react', 'sonner', '@pezkuwi/util-crypto', '@pezkuwi/util', '@pezkuwi/api', '@pezkuwi/extension-dapp', '@pezkuwi/keyring'],
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user