Skip to content

Conversation

@hughsk
Copy link

@hughsk hughsk commented Jan 14, 2019

This ensures that packages within node_modules that use babelify will resolve babel plugins and presets relative to their own package.json file, instead of resolving plugins and presets from the project root.

This is more consistent with the expected behaviour of browserify transforms, which should work in a dependency without any configuration required by the end user. Previously, developers would have to install all plugins/presets used by babelify within their dependency tree.

Note that this is a breaking change — will likely require a major version bump.

Thanks! ✨

This ensures that packages within node_modules that use babelify
will resolve babel plugins and presets relative to their own
package.json file, instead of resolving plugins and presets from
the project root.

This is more consistent with the expected behaviour of browserify
transforms, which should work in a dependency without any
configuration required the end user.

Previously, developers would have to install all plugins/presets
used by babelify within their dependency tree.

Note that this is a breaking change and will require a major
version bump.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant