modernweb-dev / web

Guides, tools and libraries for modern web development.
https://modern-web.dev
MIT License
2.23k stars 297 forks source link

[rollup-plugin-polyfills-loader] should use the publicPath from rollup-plugin-html #1198

Open barroudjo opened 3 years ago

barroudjo commented 3 years ago

Otherwise the loading of polyfills will fail when using a publicPath.

barroudjo commented 3 years ago

No answer ?

LarsDenBakker commented 3 years ago

You can configure the folder polyfills are loaded from using the polyfillsDir option. Reusing the HTML plugin public dir option would be useful, though we need to set up some more inter-plugin communication for that. https://modern-web.dev/docs/building/polyfills-loader/#polyfillsdir