-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature(trace-deps, trace-pkg): User conditions (#12)
Adds user `conditions` flag. We're following the https://github.com/vercel/nft#exports--imports model of **always** including some built-in Node.js conditions because the Node.js runtime actually does this (e.g., if I'm running `node -C my-bespoke ./file.js` and there's an `import` condition before `my-bespoke` the Node.js built-in matching means `import` wins). - Supersedes FormidableLabs/trace-deps#73 (Thanks so much for your work @yankovalera -- this is mostly just a retweaking of your original work here). - Fixes FormidableLabs/trace-deps#56 - Major release: It's a very "minor Major" in that we're removing `production` and `development` user conditions by default, but practically no one has code that is likely impacted....
- Loading branch information
1 parent
0370bab
commit 43552d1
Showing
8 changed files
with
1,371 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"trace-deps": minor | ||
"trace-pkg": minor | ||
--- | ||
|
||
- Feature (`trace-pkg`): Add `conditions` option. | ||
- Feature (`trace-deps`): Add `conditions` parameter to `traceFile`/`traceFiles` to support user runtime loading conditions. (See [#trace-deps/56](https://github.com/FormidableLabs/trace-deps/issues/56)) | ||
- BREAKING: Remove `production` and `development` from set of default user conditions in package resolution. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.