Skip to content

Use es2015-loose Babel preset in production build #198

Closed
@taion

Description

Almost every React package that I'm aware of uses the loose version of the preset to transpile, given that es2015-loose produces code that's easier to understand and more performant.

As such, it would probably make the most sense to use es2015-loose at least for the production Babel config. There are a few edge cases where it allows illegal code to work, so it may not be appropriate for the development config, but I think any "serious" production Babel config should be expected to use es2015-loose rather than es2015.

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