mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
fix(vite): allow overriding vite sourcemap (#7342)
This commit is contained in:
parent
be77d477d0
commit
2b37d72eb9
@ -51,7 +51,7 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
dedupe: ['vue']
|
dedupe: ['vue']
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
sourcemap: ctx.nuxt.options.sourcemap.client,
|
sourcemap: ctx.nuxt.options.sourcemap.client ? ctx.config.build?.sourcemap ?? true : false,
|
||||||
manifest: true,
|
manifest: true,
|
||||||
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/client'),
|
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/client'),
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
@ -81,7 +81,7 @@ export async function buildServer (ctx: ViteBuildContext) {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
sourcemap: ctx.nuxt.options.sourcemap.server,
|
sourcemap: ctx.nuxt.options.sourcemap.server ? ctx.config.build?.sourcemap ?? true : false,
|
||||||
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'),
|
outDir: resolve(ctx.nuxt.options.buildDir, 'dist/server'),
|
||||||
ssr: ctx.nuxt.options.ssr ?? true,
|
ssr: ctx.nuxt.options.ssr ?? true,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
|
Loading…
Reference in New Issue
Block a user