Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions apps/web/config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ module.exports = {
path.resolve(__dirname, 'node_modules'),
'node_modules',
];
config.resolve.alias = {
...config.resolve.alias,
// @notabene/pii-sdk uses axios.interceptors at module load time which
// fails in the browser due to ESM/CJS interop issues. The SDK is only
// used server-side (Fireblocks), so we stub it out in the browser bundle.
'@notabene/pii-sdk': false,
};
// @svgr/webpack@5.x generates ESM code with `import * as React from 'react'`
// using the classic JSX transform. Webpack 5 strict harmony analysis treats CJS
// modules (React) as having no static exports, causing build errors.
// Downgrade these from errors to warnings since the runtime behavior is correct.
config.module = config.module || {};
config.module.parser = {
...(config.module.parser || {}),
javascript: {
...((config.module.parser || {}).javascript || {}),
exportsPresence: 'warn',
},
};
const fallback = config.resolve.fallback || {};
Object.assign(fallback, {
crypto: require.resolve('crypto-browserify'),
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"@types/react-datepicker": "4.19.6",
"@types/react-dom": "18.3.5",
"@types/react-redux": "7.1.34",
"axios": "1.8.2",
"axios": "1.13.6",
"babel-preset-react-app": "10.1.0",
"browserify-zlib": "0.2.0",
"chakra-react-select": "4.10.1",
Expand Down
Loading
Loading