mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(vite): remove global
replacement (#1835)
This commit is contained in:
parent
89aa7aa303
commit
6eb4040b23
@ -17,7 +17,6 @@ export async function buildClient (ctx: ViteBuildContext) {
|
||||
|
||||
const clientConfig: vite.InlineConfig = vite.mergeConfig(ctx.config, {
|
||||
define: {
|
||||
global: 'globalThis',
|
||||
'process.client': 'true',
|
||||
'process.server': 'false',
|
||||
'process.static': 'false',
|
||||
|
@ -17,8 +17,7 @@ export async function buildClient (ctx: ViteBuildContext) {
|
||||
define: {
|
||||
'process.server': false,
|
||||
'process.client': true,
|
||||
'module.hot': false,
|
||||
global: 'globalThis'
|
||||
'module.hot': false
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
Loading…
Reference in New Issue
Block a user