We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
inlineConfig.mode
1 parent ac92d40 commit 655ba86Copy full SHA for 655ba86
packages/wxt/src/core/wxt.ts
@@ -21,7 +21,8 @@ export async function registerWxt(
21
): Promise<void> {
22
// Default NODE_ENV environment variable before other packages, like vite, do it
23
// See https://github.com/wxt-dev/wxt/issues/873#issuecomment-2254555523
24
- process.env.NODE_ENV ??= command === 'serve' ? 'development' : 'production';
+ process.env.NODE_ENV ??=
25
+ inlineConfig.mode ?? (command === 'serve' ? 'development' : 'production');
26
27
const hooks = createHooks<WxtHooks>();
28
const config = await resolveConfig(inlineConfig, command);
0 commit comments