Soo i’m transitioning to Rollup from Webpack, in webpack i had 3 entries, pollyfils.ts, vendor.ts, and app.ts, so webpack did ok in dealing with the pollyfils file, then in html i just include the script tag for pollyfils.bundle.js and all green.
However in Rollup i didn’t find a way to make multiple entries, and the multiEntry plugin only extends to globbing and still bundles to the same file.
So i tried importing my pollyfils in top of my app.module.ts file but it get’s errors, here are first the intl one, then the web-animations-js one (after i commented out intl):
Uncaught ReferenceError: IntlPolyfill is not defined
How am i supposed to import this pollyfils with Rollup then?
// app.module.ts import './pollyfils.ts'; ... // pollyfils import 'intl/index.js'; import 'intl/locale-data/jsonp/en.js'; import 'web-animations-js';