Skip to content

Commit

Permalink
Conform to browserslist api
Browse files Browse the repository at this point in the history
Commit a1bf895 changed the browserslist
request from
    browserslist(this.browsersRequest)
to
    browserslist(this.browsersRequest, { from })

But in browserslist the option name for the path is 'path'. This commit
corrects this. Note that this means that before, since 'path' was not specified,
browserslist would fallback to the current working directory for the
config file look up.

With this commit, if no queries are specified, browserslist will look up
for a config file up from the specified path rather than the current working
directory. This conforms with autoprefixer behavior.

Note that we only pass 'from' if it is not null, this allows
browserslist to fallback to the current directory when no path is
provided.
  • Loading branch information
Damien Robert committed Dec 18, 2017
1 parent 601b24a commit f69e5c5
Show file tree
Hide file tree
Showing 2 changed files with 2,754 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/browsers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f69e5c5

Please sign in to comment.