Skip to content

Add browserify in package.json for ES6 #1653

@binarykitchen

Description

@binarykitchen

Now that with v3.x my app is breaking since it's browserify + babelify configuration doesn't transform node_modules by default.

See https://github.com/babel/babelify#faq for background.

Suggestion is to add this in your package.json

{
  "browserify": {
    "transform": [["babelify", { "presets": ["@babel/preset-env"] }]]
  }
}

This will ensure that any app using async and building it with browserify + babelify gets transpiled correctly.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions