Skip to content

Can we opt-in to shipped ES proposals via Webpack babel-loader? #426

@jamesallardice

Description

@jamesallardice

Currently Webpack fails to compile the code if you use e.g. a static class property (which is an ECMAScript feature supported natively by Node 14). The @babel/preset-env transform also supports the parsing of static class properties if we opt-in with the shippedProposals option.

However, adding shippedProposals doesn't fix the Webpack compilation error. This may be because Webpack is using a different Babel config (inside the Webpack config) but I haven't had a chance to look into it any further yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions