bbgo_origin/frontend/next.config.js

18 lines
378 B
JavaScript
Raw Permalink Normal View History

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,
})
return config
},
})