fix: Automatically replace vite's process.env.NODE_ENV output in lib mode with the mode
This commit is contained in:
@@ -78,6 +78,10 @@ async function buildSingleEntrypoint(
|
||||
},
|
||||
},
|
||||
},
|
||||
define: {
|
||||
// See https://github.com/aklinker1/vite-plugin-web-extension/issues/96
|
||||
'process.env.NODE_ENV': JSON.stringify(config.mode),
|
||||
},
|
||||
};
|
||||
const entryConfig = vite.mergeConfig(
|
||||
libMode,
|
||||
|
||||
Reference in New Issue
Block a user