Skip to content

Commit

Permalink
Exclude source-map-js lib from bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Nov 22, 2024
1 parent 2ba65a4 commit 074c470
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ export default defineConfig({
emptyOutDir: !process.env.BUILD_FN,
target: 'es6',
sourcemap: true,
rollupOptions: {
external: [/source-map-js/],
},
},
plugins: [bundleStats()],

/**
* @see https://vitest.dev/config/#configuration
*/
Expand Down

0 comments on commit 074c470

Please sign in to comment.