Add sideEffects to package.json by frandiox 路 Pull Request #128 路 micromatch/picomatch (original) (raw)

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.