-
-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Strict ESM loader compatibility (#880)
* Convert build pipeline to produce valid ESM output * Add package `exports` field to `react-icons` * Fix formatting (cherry picked from commit 47db9a2) * Add `./lib` to package exports * Add explicit `import`-type subpath export instructions * Simplify wildcard re-export * add type annotation, fix tsconfig --------- Co-authored-by: kamijin_fanta <kamijin@live.jp>
- Loading branch information
1 parent
39a2c97
commit e323e2b
Showing
16 changed files
with
1,264 additions
and
68 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
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
{ | ||
"targets": { | ||
"esmodules": false | ||
}, | ||
"presets": [ | ||
[ | ||
"@babel/env", | ||
{ | ||
"modules": "commonjs" | ||
} | ||
], | ||
"@babel/typescript", | ||
"@babel/react" | ||
], | ||
"plugins": [ | ||
[ | ||
"./plugin/defaultImportConverter", | ||
{ | ||
"keys": ["React"] | ||
} | ||
] | ||
] | ||
} |
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,29 @@ | ||
{ | ||
"targets": { | ||
"esmodules": true | ||
}, | ||
"presets": [ | ||
[ | ||
"@babel/env", | ||
{ | ||
"modules": false | ||
} | ||
], | ||
"@babel/typescript", | ||
"@babel/react" | ||
], | ||
"plugins": [ | ||
[ | ||
"./plugin/defaultImportConverter", | ||
{ | ||
"keys": ["React"] | ||
} | ||
], | ||
[ | ||
"babel-plugin-add-import-extension", | ||
{ | ||
"extension": "mjs" | ||
} | ||
] | ||
] | ||
} |
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.