Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sideEffects to package.json #128

Merged
merged 1 commit into from
Feb 8, 2024
Merged

Conversation

frandiox
Copy link
Contributor

@frandiox frandiox commented Feb 6, 2024

Hi 👋
Bundlers like Webpack or ESBuild use the key sideEffects in package.json to enhance tree-shaking in some conditions.
I noticed picomatch is unnecessarily bundled when using the new ViteRuntime and, as a result, its calls to require make the code fail in certain environments.

The current workarounds look like this. This change should fix that.

@jonschlinkert jonschlinkert merged commit 24fdd65 into micromatch:master Feb 8, 2024
13 checks passed
@coveralls
Copy link

Coverage Status

coverage: 92.355%. remained the same
when pulling 8f18eb6 on frandiox:patch-1
into 5214db4 on micromatch:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants