feat(vite): add node_modules and buildDir to x_google_ignoreList (#19243)

This commit is contained in:
Daniel Roe 2023-03-02 15:28:15 +00:00 committed by GitHub
parent 3475f36742
commit 21e3e17cfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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