-
-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add esm exports to package.json and change esm bundle extension …
…to .mjs to allow node.js to properly import esm version of package. (#989)
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 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
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 |
---|---|---|
|
@@ -2,8 +2,15 @@ | |
"name": "@loadable/component", | ||
"description": "React code splitting made easy.", | ||
"version": "5.15.3", | ||
"main": "dist/loadable.cjs.js", | ||
"module": "dist/loadable.esm.js", | ||
"main": "./dist/loadable.cjs.js", | ||
"module": "./dist/loadable.esm.mjs", | ||
"exports": { | ||
".": { | ||
"require": "./dist/loadable.cjs.js", | ||
"import": "./dist/loadable.esm.mjs", | ||
"default": "./dist/loadable.cjs.js" | ||
} | ||
}, | ||
"repository": "[email protected]:gregberge/loadable-components.git", | ||
"author": "Greg Bergé <[email protected]>", | ||
"publishConfig": { | ||
|
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