Skip to content

Autocomplete webpack build outputs syntax that causes a parse error in IE8 #306

Open
@NickColley

Description

@NickColley

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working the way it should (including incorrect wording in documentation)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions