-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Redux package to be full ESM
- Added `type: "module"` and `exports` section - Moved build output to `/dist` - Updated Rollup to 3.x - Changed CommonJS artifact to have `.cjs` extension to placate `publint` - Renamed config files and `mangleErrors` script to `.cjs`
- Loading branch information
1 parent
d0a74ed
commit 1ad6087
Showing
8 changed files
with
22 additions
and
30 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -23,15 +23,16 @@ | |
"Dan Abramov <[email protected]> (https://github.com/gaearon)", | ||
"Andrew Clark <[email protected]> (https://github.com/acdlite)" | ||
], | ||
"main": "lib/redux.js", | ||
"module": "es/redux.js", | ||
"type": "module", | ||
"module": "dist/es/index.js", | ||
"main": "dist/cjs/index.cjs", | ||
"types": "types/index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./es/redux.js", | ||
"default": "./lib/redux.js" | ||
"import": "./dist/es/index.js", | ||
"default": "./dist/cjs/index.cjs" | ||
} | ||
}, | ||
"files": [ | ||
|
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
File renamed without changes.