mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 01:17:16 +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, {
|
const clientConfig: vite.InlineConfig = vite.mergeConfig(ctx.config, {
|
||||||
define: {
|
define: {
|
||||||
global: 'globalThis',
|
|
||||||
'process.client': 'true',
|
'process.client': 'true',
|
||||||
'process.server': 'false',
|
'process.server': 'false',
|
||||||
'process.static': 'false',
|
'process.static': 'false',
|
||||||
|
@ -17,8 +17,7 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
define: {
|
define: {
|
||||||
'process.server': false,
|
'process.server': false,
|
||||||
'process.client': true,
|
'process.client': true,
|
||||||
'module.hot': false,
|
'module.hot': false
|
||||||
global: 'globalThis'
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
Loading…
Reference in New Issue
Block a user