mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
feat(vite): add node_modules
and buildDir to x_google_ignoreList
(#19243)
This commit is contained in:
parent
3475f36742
commit
21e3e17cfa
@ -64,6 +64,9 @@ export async function bundle (nuxt: Nuxt) {
|
|||||||
copyPublicDir: false,
|
copyPublicDir: false,
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
output: {
|
output: {
|
||||||
|
sourcemapIgnoreList: (relativeSourcePath) => {
|
||||||
|
return relativeSourcePath.includes('/node_modules/') || relativeSourcePath.includes(ctx.nuxt.options.buildDir)
|
||||||
|
},
|
||||||
sanitizeFileName: sanitizeFilePath,
|
sanitizeFileName: sanitizeFilePath,
|
||||||
// https://github.com/vitejs/vite/tree/main/packages/vite/src/node/build.ts#L464-L478
|
// https://github.com/vitejs/vite/tree/main/packages/vite/src/node/build.ts#L464-L478
|
||||||
assetFileNames: nuxt.options.dev
|
assetFileNames: nuxt.options.dev
|
||||||
|
Loading…
Reference in New Issue
Block a user