Skip to content

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