mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 07:05:11 +00:00
fix(vite): pass hidden
sourcemap values to vite (#25329)
This commit is contained in:
parent
ce8a2aaf37
commit
648ef06993
@ -75,7 +75,7 @@ export async function buildClient (ctx: ViteBuildContext) {
|
||||
},
|
||||
cacheDir: resolve(ctx.nuxt.options.rootDir, 'node_modules/.cache/vite', 'client'),
|
||||
build: {
|
||||
sourcemap: ctx.nuxt.options.sourcemap.client ? ctx.config.build?.sourcemap ?? true : false,
|
||||
sourcemap: ctx.nuxt.options.sourcemap.client ? ctx.config.build?.sourcemap ?? ctx.nuxt.options.sourcemap.client : false,
|
||||
manifest: 'manifest.json',
|
||||
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/client'),
|
||||
rollupOptions: {
|
||||
|
@ -74,7 +74,7 @@ export async function buildServer (ctx: ViteBuildContext) {
|
||||
build: {
|
||||
// we'll display this in nitro build output
|
||||
reportCompressedSize: false,
|
||||
sourcemap: ctx.nuxt.options.sourcemap.server ? ctx.config.build?.sourcemap ?? true : false,
|
||||
sourcemap: ctx.nuxt.options.sourcemap.server ? ctx.config.build?.sourcemap ?? ctx.nuxt.options.sourcemap.server : false,
|
||||
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'),
|
||||
ssr: true,
|
||||
rollupOptions: {
|
||||
|
Loading…
Reference in New Issue
Block a user