mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +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,
|
||||
rollupOptions: {
|
||||
output: {
|
||||
sourcemapIgnoreList: (relativeSourcePath) => {
|
||||
return relativeSourcePath.includes('/node_modules/') || relativeSourcePath.includes(ctx.nuxt.options.buildDir)
|
||||
},
|
||||
sanitizeFileName: sanitizeFilePath,
|
||||
// https://github.com/vitejs/vite/tree/main/packages/vite/src/node/build.ts#L464-L478
|
||||
assetFileNames: nuxt.options.dev
|
||||
|
Loading…
Reference in New Issue
Block a user