-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: esm files should use .mjs extention (#3159)
- Loading branch information
1 parent
54bfd1c
commit 206b56d
Showing
14 changed files
with
119 additions
and
28 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,11 @@ | ||
--- | ||
'@module-federation/webpack-bundler-runtime': patch | ||
'@module-federation/data-prefetch': patch | ||
'@module-federation/runtime-tools': patch | ||
'@module-federation/managers': patch | ||
'@module-federation/manifest': patch | ||
'@module-federation/runtime': patch | ||
'@module-federation/sdk': patch | ||
--- | ||
|
||
disable hoistTransitiveImports for better tree shake |
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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"version": "0.6.16", | ||
"author": "zhanghang <[email protected]>", | ||
"main": "./dist/index.cjs", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.esm.mjs", | ||
"types": "./dist/index.cjs.d.ts", | ||
"license": "MIT", | ||
"publishConfig": { | ||
|
@@ -12,17 +12,17 @@ | |
"exports": { | ||
".": { | ||
"types": "./dist/index.cjs.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
}, | ||
"./runtime": { | ||
"types": "./dist/runtime.cjs.d.ts", | ||
"import": "./dist/runtime.esm.js", | ||
"import": "./dist/runtime.esm.mjs", | ||
"require": "./dist/runtime.cjs.js" | ||
}, | ||
"./webpack-bundler-runtime": { | ||
"types": "./dist/webpack-bundler-runtime.cjs.d.ts", | ||
"import": "./dist/webpack-bundler-runtime.esm.js", | ||
"import": "./dist/webpack-bundler-runtime.esm.mjs", | ||
"require": "./dist/webpack-bundler-runtime.cjs.js" | ||
}, | ||
"./*": "./*" | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
"version": "0.6.16", | ||
"author": "zhouxiao <[email protected]>", | ||
"main": "./dist/index.cjs.js", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.esm.mjs", | ||
"types": "./dist/index.cjs.d.ts", | ||
"license": "MIT", | ||
"publishConfig": { | ||
|
@@ -16,22 +16,22 @@ | |
"exports": { | ||
".": { | ||
"types": "./dist/index.cjs.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
}, | ||
"./helpers": { | ||
"types": "./dist/helpers.cjs.d.ts", | ||
"import": "./dist/helpers.esm.js", | ||
"import": "./dist/helpers.esm.mjs", | ||
"require": "./dist/helpers.cjs.js" | ||
}, | ||
"./types": { | ||
"types": "./dist/types.cjs.d.ts", | ||
"import": "./dist/types.esm.js", | ||
"import": "./dist/types.esm.mjs", | ||
"require": "./dist/types.cjs.js" | ||
}, | ||
"./embedded": { | ||
"types": "./dist/embedded.cjs.d.ts", | ||
"import": "./dist/embedded.esm.js", | ||
"import": "./dist/embedded.esm.mjs", | ||
"require": "./dist/embedded.cjs.js" | ||
}, | ||
"./*": "./*" | ||
|
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 |
---|---|---|
|
@@ -17,17 +17,17 @@ | |
"author": "zhanghang <[email protected]>", | ||
"sideEffects": false, | ||
"main": "./dist/index.cjs.js", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.esm.mjs", | ||
"types": "./dist/index.cjs.d.ts", | ||
"exports": { | ||
".": { | ||
"types": "./dist/index.cjs.d.ts", | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
}, | ||
"./normalize-webpack-path": { | ||
"types": "./dist/normalize-webpack-path.cjs.d.ts", | ||
"import": "./dist/normalize-webpack-path.esm.js", | ||
"import": "./dist/normalize-webpack-path.esm.mjs", | ||
"require": "./dist/normalize-webpack-path.cjs.js" | ||
} | ||
}, | ||
|
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 |
---|---|---|
|
@@ -17,23 +17,23 @@ | |
}, | ||
"author": "zhanghang <[email protected]>", | ||
"main": "./dist/index.cjs.js", | ||
"module": "./dist/index.esm.js", | ||
"module": "./dist/index.esm.mjs", | ||
"types": "./dist/index.cjs.d.ts", | ||
"dependencies": { | ||
"@module-federation/runtime": "workspace:*", | ||
"@module-federation/sdk": "workspace:*" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.esm.js", | ||
"import": "./dist/index.esm.mjs", | ||
"require": "./dist/index.cjs.js" | ||
}, | ||
"./constant": { | ||
"import": "./dist/constant.esm.js", | ||
"import": "./dist/constant.esm.mjs", | ||
"require": "./dist/constant.cjs.js" | ||
}, | ||
"./container": { | ||
"import": "./dist/container.esm.js", | ||
"import": "./dist/container.esm.mjs", | ||
"require": "./dist/container.cjs.js" | ||
}, | ||
"./*": "./*" | ||
|
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