bbgo_origin/frontend/next.config.js

17 lines
373 B
JavaScript
Raw Normal View History

2022-06-11 00:57:54 +00:00
const withTM = require('next-transpile-modules')([
'@react-spring/three',
'@react-spring/web',
]);
module.exports = withTM({
2021-10-07 08:53:46 +00:00
// disable webpack 5 to make it compatible with the following rules
2021-10-07 08:53:12 +00:00
webpack5: false,
webpack: (config, options) => {
config.module.rules.push({
test: /react-spring/,
sideEffects: true,
2022-06-11 00:57:54 +00:00
});
return config;
},
2022-06-11 00:57:54 +00:00
});