Skip to content

Commit bb1e471

Browse files
authored
feat(utilities): expose esm from package json (#2818)
1 parent 951d705 commit bb1e471

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.changeset/large-bikes-fail.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/utilities': minor
3+
---
4+
5+
Expose esm from the package json

packages/utilities/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@module-federation/utilities",
33
"version": "3.0.39",
4-
"type": "commonjs",
54
"main": "./dist/index.cjs.js",
5+
"module": "./dist/index.esm.js",
66
"types": "./dist/index.cjs.d.ts",
77
"license": "MIT",
88
"publishConfig": {
@@ -36,7 +36,11 @@
3636
}
3737
},
3838
"exports": {
39-
".": "./dist/index.cjs.js",
39+
".": {
40+
"types": "./dist/index.cjs.d.ts",
41+
"import": "./dist/index.esm.js",
42+
"require": "./dist/index.cjs.js"
43+
},
4044
"./package.json": "./package.json"
4145
},
4246
"typesVersions": {

0 commit comments

Comments
 (0)