Conversation
| "@rollup/pluginutils": "^4.2.1", | ||
| "react-refresh": "^0.13.0" | ||
| }, | ||
| "peerDependencies": { |
There was a problem hiding this comment.
In case, Every plugin using needs to bump peerDeps after Vite's release.
There was a problem hiding this comment.
We are already requiring this for all internal plugins for v3, no? If not, yes, we should.
There was a problem hiding this comment.
We are requiring ^3.0.0-alpha which means 3.0.0-alpha.1 can be used.
But now we need to require ^3.0.0-alpha.11 (next version). (since createFilter is not exported in Vite 3.0.0-alpha.10, current version)
|
The CJS build size is bigger mainly because of dist size (picomatch not externalized): 3.21MB |
|
Given that we only have 4 deps externalized right now, I would prefer to avoid externalizing |
|
IMO it is possible to have an extra 50kB for this. 👍 |
|
Giving a +1 as it'd help remove the |
because `createFilter` util is exposed from Vite v3. vitejs/vite#8562
because `createFilter` util is exposed from Vite v3. vitejs/vite#8562
because `createFilter` util is exposed from Vite v3. vitejs/vite#8562
| ...(isProduction ? [] : Object.keys(pkg.devDependencies)) | ||
| ], | ||
| plugins: [...createNodePlugins(false, false, false), bundleSizeLimit(55)] | ||
| plugins: [...createNodePlugins(false, false, false), bundleSizeLimit(120)] |
There was a problem hiding this comment.
Quick question: How much leeway do you give the bundle size limit?
Description
We are already exposing
normalizePath, another@rollup/pluginutilsfunction.createFilteris used internally and in the plugins in the monorepo. Exposing it in Vite may encourage more people to follow the recommended include/exclude pattern.Reference discussion with @sheremet-va for Vitest: vitest-dev/vitest#1467 (comment)
@antfu I needed to bump the size limit of the CJS build. I tried to avoid exposing
createFilterin publicUtils but we are ourselves using the CJS build for plugins internally. Do you think the extra 50kb is an issue here? The other option is to avoid its use in our plugins for the moment.What is the purpose of this pull request?