Polyfill
As a design decision, we have decided against any kind of polyfill in our code. This not only benefits the code, but also makes testing easier. A more effective way to compensate for incompatibilities is to add missing functionality via external polyfills.
The URL builder can be used to compile the desired polyfills. You can also automate the creation of the URL. To do this, you can install the create-polyfill-service-url tool.
With the following command, the tool analyzes your script and outputs the desired URL:
npm i create-polyfill-service-urlWith the following command, the tool analyzes your script and outputs the desired URL:
npx create-polyfill-service-url analyze --file bundle.jsbundle.js is the file here that contains your code.
The result is a URL that you can insert into your HTML web page.
For Monster, the following code can currently be used in the header of an HTML page. Firefox also requires the polyfill construct-style-sheets-polyfill for the Monster components for the constructible stylesheets.