Skip to content

Commit

Permalink
Merge pull request #2902 from modernweb-dev/fix/publish-polyfill-plug…
Browse files Browse the repository at this point in the history
…in-esm

fix: publish polyfill plugin as esm instead of commonjs
  • Loading branch information
thepassle authored Feb 28, 2025
2 parents 539a2ff + da68f94 commit e122da1
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/tasty-emus-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@web/dev-server-polyfill': patch
---

publish as esm instead of commonjs
2 changes: 1 addition & 1 deletion packages/dev-server-polyfill/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
"extends": "../../tsconfig.node-base.json",
"compilerOptions": {
"module": "commonjs",
"module": "ESNext",
"outDir": "./dist",
"rootDir": "./src",
"composite": true,
Expand Down
5 changes: 5 additions & 0 deletions packages/dev-server-polyfill/tsconfig.override.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"compilerOptions": {
"module": "ESNext"
}
}
6 changes: 6 additions & 0 deletions packages/storybook-framework-web-components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
},
{
"path": "../storybook-builder/tsconfig.json"
},
{
"path": "../rollup-plugin-import-meta-assets/tsconfig.json"
},
{
"path": "../storybook-utils/tsconfig.json"
}
],
"include": [
Expand Down
12 changes: 6 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@
{
"path": "./packages/storybook-builder/tsconfig.json"
},
{
"path": "./packages/rollup-plugin-import-meta-assets/tsconfig.json"
},
{
"path": "./packages/storybook-utils/tsconfig.json"
},
{
"path": "./packages/rollup-plugin-polyfills-loader/tsconfig.json"
},
Expand All @@ -73,9 +79,6 @@
{
"path": "./packages/rollup-plugin-workbox/tsconfig.json"
},
{
"path": "./packages/rollup-plugin-import-meta-assets/tsconfig.json"
},
{
"path": "./packages/dev-server-hmr/tsconfig.json"
},
Expand All @@ -88,9 +91,6 @@
{
"path": "./packages/storybook-framework-web-components/tsconfig.json"
},
{
"path": "./packages/storybook-utils/tsconfig.json"
},
{
"path": "./packages/test-runner-puppeteer/tsconfig.json"
},
Expand Down

0 comments on commit e122da1

Please sign in to comment.