Skip to content

Old Firefox v52 target in preset-env breaking build #18

Open

Description

@kriscarle

Please consider upgrading the minimum browser targets or maybe using browserslist at https://github.com/Airtable/blocks/blob/master/packages/webpack-bundler/src/javascript_config.ts#L5

In my case the latest version of Mapbox GL (v2.6) now includes an object spread operator in the build. Object spread needs Firefox 55, but the CLI is targeting >52 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax#browser_compatibility Firefox v52 is from 2017?

Alternatively, an option to skip transpilation of specific modules would also work. I tried the Webpack '!' exclude before the module name but that isn't working in this setup.

Alternatively an option to include specific modules for transpilation would work (had that backwards) I think the issue is that babel-loader expects the imports to either be compatible with the target or included for transpilation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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