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

Allow preset-env to take a config path #1374

Merged
merged 3 commits into from
Feb 3, 2021

Conversation

mcnicholls
Copy link
Contributor

This allows a path to be passed where preset-env will look for the browserslist node module and any browserslist config files (e.g. .browserslistrc, package.json, etc)

This is useful when your build system and/or some of your node_modules aren't in your project (current) directory.

If not specified, then it will default to the current directory of the process, which was the default behaviour before this change.

@CLAassistant
Copy link

CLAassistant commented Feb 2, 2021

CLA assistant check
All committers have signed the CLA.

@kdy1 kdy1 self-assigned this Feb 3, 2021
@kdy1 kdy1 added this to the v1.2.48 milestone Feb 3, 2021
@kdy1 kdy1 merged commit bd119e6 into swc-project:master Feb 3, 2021
@mcnicholls mcnicholls deleted the preset-env-config-path branch February 3, 2021 08:10
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants