Skip to content

Commit e122da1

Browse files
authored
Merge pull request #2902 from modernweb-dev/fix/publish-polyfill-plugin-esm
fix: publish polyfill plugin as esm instead of commonjs
2 parents 539a2ff + da68f94 commit e122da1

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

.changeset/tasty-emus-sort.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web/dev-server-polyfill': patch
3+
---
4+
5+
publish as esm instead of commonjs

packages/dev-server-polyfill/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"extends": "../../tsconfig.node-base.json",
55
"compilerOptions": {
6-
"module": "commonjs",
6+
"module": "ESNext",
77
"outDir": "./dist",
88
"rootDir": "./src",
99
"composite": true,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"module": "ESNext"
4+
}
5+
}

packages/storybook-framework-web-components/tsconfig.json

+6
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
},
4646
{
4747
"path": "../storybook-builder/tsconfig.json"
48+
},
49+
{
50+
"path": "../rollup-plugin-import-meta-assets/tsconfig.json"
51+
},
52+
{
53+
"path": "../storybook-utils/tsconfig.json"
4854
}
4955
],
5056
"include": [

tsconfig.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
{
6565
"path": "./packages/storybook-builder/tsconfig.json"
6666
},
67+
{
68+
"path": "./packages/rollup-plugin-import-meta-assets/tsconfig.json"
69+
},
70+
{
71+
"path": "./packages/storybook-utils/tsconfig.json"
72+
},
6773
{
6874
"path": "./packages/rollup-plugin-polyfills-loader/tsconfig.json"
6975
},
@@ -73,9 +79,6 @@
7379
{
7480
"path": "./packages/rollup-plugin-workbox/tsconfig.json"
7581
},
76-
{
77-
"path": "./packages/rollup-plugin-import-meta-assets/tsconfig.json"
78-
},
7982
{
8083
"path": "./packages/dev-server-hmr/tsconfig.json"
8184
},
@@ -88,9 +91,6 @@
8891
{
8992
"path": "./packages/storybook-framework-web-components/tsconfig.json"
9093
},
91-
{
92-
"path": "./packages/storybook-utils/tsconfig.json"
93-
},
9494
{
9595
"path": "./packages/test-runner-puppeteer/tsconfig.json"
9696
},

0 commit comments

Comments
 (0)