mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
disable webpack5 for building
This commit is contained in:
parent
15c99d13d3
commit
72109a21b1
4
frontend/next-env.d.ts
vendored
4
frontend/next-env.d.ts
vendored
|
@ -1,2 +1,6 @@
|
|||
/// <reference types="next" />
|
||||
/// <reference types="next/types/global" />
|
||||
/// <reference types="next/image-types/global" />
|
||||
|
||||
// NOTE: This file should not be edited
|
||||
// see https://nextjs.org/docs/basic-features/typescript for more information.
|
||||
|
|
|
@ -5,12 +5,12 @@ const withTM = require('next-transpile-modules')
|
|||
])
|
||||
|
||||
module.exports = withTM({
|
||||
webpack: config => {
|
||||
webpack5: false,
|
||||
webpack: (config, options) => {
|
||||
config.module.rules.push({
|
||||
test: /react-spring/,
|
||||
sideEffects: true,
|
||||
})
|
||||
|
||||
return config
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user