Skip to content

Commit

Permalink
chore: fix moduleSideEffects in build script on Windows (#18518)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red authored Oct 30, 2024
1 parent 3c9836d commit 25fe9e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vite/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ const clientConfig = defineConfig({
const sharedNodeOptions = defineConfig({
treeshake: {
moduleSideEffects(id, external) {
id = id.replaceAll('\\', '/')
// These nested dependencies should be considered side-effect free
// as it's not set within their package.json
if (
Expand Down

0 comments on commit 25fe9e3

Please sign in to comment.