-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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,26 @@ | ||
--- | ||
'@emotion/babel-plugin': minor | ||
'@emotion/babel-plugin-jsx-pragmatic': minor | ||
'@emotion/babel-preset-css-prop': minor | ||
'@emotion/cache': minor | ||
'@emotion/css': minor | ||
'@emotion/css-prettifier': minor | ||
'@emotion/eslint-plugin': minor | ||
'@emotion/hash': minor | ||
'@emotion/is-prop-valid': minor | ||
'@emotion/jest': minor | ||
'@emotion/memoize': minor | ||
'@emotion/native': minor | ||
'@emotion/primitives': minor | ||
'@emotion/primitives-core': minor | ||
'@emotion/react': minor | ||
'@emotion/serialize': minor | ||
'@emotion/server': minor | ||
'@emotion/sheet': minor | ||
'@emotion/styled': minor | ||
'@emotion/unitless': minor | ||
'@emotion/utils': minor | ||
'@emotion/weak-memoize': minor | ||
--- | ||
|
||
`exports` field has been added to the `package.json` manifest. This fixes how our default exports are treated by Node.js when using their native support for ES modules. It also limits what files can be imported from a package but we've tried our best to allow importing all the files that were considered to be a part of the public API. |
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,7 @@ | ||
--- | ||
'@emotion/react': minor | ||
'@emotion/styled': minor | ||
'@emotion/utils': minor | ||
--- | ||
|
||
Thanks to the added `exports` field, the package now includes a `worker` condition that can be utilized by properly configured bundlers when targeting worker-like environments. It fixes the issue with browser-specific files being prioritized by some bundlers when targeting workers. |