Open
Description
This project does not support IE8 which if fine but it makes it hard to progressively use this without having scripts throw errors in older browsers, ideally we'd be able to conditionally use this project without errors.
At the moment since we're using Webpack to build this project when you load the JavaScript it'll fail due to the use of the 'default' keyword.
This can't be avoided by feature detection 'cutting the mustard' and returning early since the error happens when parsing the file.
We'd want to use rollup (probably more appropriate for a library anyway and result in a small filesize), with legacy mode turned on like we do in GOV.UK Frontend.