Skip to content

Commit

Permalink
fix(vite): omit / from sourcemapIgnoreList for windows support
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 3, 2023
1 parent 1712885 commit 73ade18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/vite.ts
Expand Up @@ -65,7 +65,7 @@ export async function bundle (nuxt: Nuxt) {
rollupOptions: {
output: {
sourcemapIgnoreList: (relativeSourcePath) => {
return relativeSourcePath.includes('/node_modules/') || relativeSourcePath.includes(ctx.nuxt.options.buildDir)
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
Expand Down

0 comments on commit 73ade18

Please sign in to comment.