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

Automatically include JS polyfills for postcss-preset-env #166

Open
luxaritas opened this issue Sep 6, 2022 · 0 comments
Open

Automatically include JS polyfills for postcss-preset-env #166

luxaritas opened this issue Sep 6, 2022 · 0 comments
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

Comments

@luxaritas
Copy link
Member

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

@luxaritas luxaritas added type: enhancement New feature or request scope: vite-utils priority: p4/minor There is a reasonable workaround, or there is a nice to have with limited impact size: md labels Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant