Automatically include JS polyfills for postcss-preset-env #166
Labels
priority: p4/minor
There is a reasonable workaround, or there is a nice to have with limited impact
scope: vite-utils
size: md
type: enhancement
New feature or request
Some of the postcss-preset-env polyfills require including JS for the polyfills to work. We should add a plugin to vite-utils that determines whether any of the features get used in CSS bundles (we don't want to bloat bundle size if the features aren't used), and if so add the required JS to a JS bundle automatically. For now, the workaround is that if the polyfills are needed, they need to be imported into user code by hand
The text was updated successfully, but these errors were encountered: