mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 01:15:58 +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',
|
mode: nuxt.options.dev ? 'development' : 'production',
|
||||||
logLevel: 'warn',
|
logLevel: 'warn',
|
||||||
define: {
|
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
|
'process.dev': nuxt.options.dev
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
|
Loading…
Reference in New Issue
Block a user