Skip to content

Use es2015-loose Babel preset in production build #198

@taion

Description

@taion

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions