This commit is contained in:
parent
8ff5397e10
commit
9bedaac5d6
|
|
@ -17,7 +17,7 @@ const nextConfig = {
|
|||
esmExternals: "loose",
|
||||
},
|
||||
compiler: {
|
||||
removeConsole: yes, // 保留所有模式中的 console.log
|
||||
removeConsole: true, // 保留所有模式中的 console.log
|
||||
removeConsole: process.env.NODE_ENV === 'production' ? { exclude: ['error'] } : false, // ✅ 用 NODE_ENV
|
||||
emotion: true,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue