mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
fix(bridge): add missing process flags for vite (#2736)
This commit is contained in:
parent
176716bdaf
commit
e27a0173e8
@ -26,6 +26,10 @@ async function bundle (nuxt: Nuxt, builder: any) {
|
||||
mode: nuxt.options.dev ? 'development' : 'production',
|
||||
logLevel: 'warn',
|
||||
define: {
|
||||
'process.static': nuxt.options.target === 'static',
|
||||
'process.env.NODE_ENV': JSON.stringify(nuxt.options.dev ? 'development' : 'production'),
|
||||
'process.mode': JSON.stringify(nuxt.options.dev ? 'development' : 'production'),
|
||||
'process.target': JSON.stringify(nuxt.options.target),
|
||||
'process.dev': nuxt.options.dev
|
||||
},
|
||||
resolve: {
|
||||
|
Loading…
Reference in New Issue
Block a user