Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set cwd to the location of the closest package.json #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 14, 2019

  1. cwd is now the location of the closest package.json

    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.
    hughsk committed Jan 14, 2019
    Configuration menu
    Copy the full SHA
    8e58197 View commit details
    Browse the repository at this point in the history