sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7k stars 434 forks source link

Remove injectImports flag from roll-plugin-css-chunks #1677

Closed benmccann closed 3 years ago

benmccann commented 3 years ago

This can add something like @import 'Nav-ad2b16a3.css'; into the CSS which causes a second request for the dependent CSS and also breaks source maps

I really don't know why I ever set this. I think I had it confused with rollup-plugin-svelte's emitCss option which puts import statements into the JavaScript files