mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
add next.config.js for fixing react spring issue
see also: - https://github.com/pmndrs/react-spring/issues/1078 - https://github.com/plouc/nivo/issues/1290
This commit is contained in:
parent
fb662ba783
commit
d9742b7412
16
frontend/next.config.js
Normal file
16
frontend/next.config.js
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
const withTM = require('next-transpile-modules')
|
||||||
|
([
|
||||||
|
'@react-spring/three',
|
||||||
|
'@react-spring/web',
|
||||||
|
])
|
||||||
|
|
||||||
|
module.exports = withTM({
|
||||||
|
webpack: config => {
|
||||||
|
config.module.rules.push({
|
||||||
|
test: /react-spring/,
|
||||||
|
sideEffects: true,
|
||||||
|
})
|
||||||
|
|
||||||
|
return config
|
||||||
|
},
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user