feat: inject process.env.NODE_ENV for third party libs (#2481)
This commit is contained in:
@@ -60,6 +60,12 @@ export async function bundleJs(
|
||||
write: false,
|
||||
metafile: true,
|
||||
|
||||
define: {
|
||||
"process.env.NODE_ENV": JSON.stringify(
|
||||
options.dev ? "development" : "production",
|
||||
),
|
||||
},
|
||||
|
||||
plugins: [
|
||||
preactDebugger(PREACT_ENV),
|
||||
buildIdPlugin(options.buildId),
|
||||
|
||||
Reference in New Issue
Block a user