diff --git a/.changeset/tasty-emus-sort.md b/.changeset/tasty-emus-sort.md new file mode 100644 index 000000000..37380f57a --- /dev/null +++ b/.changeset/tasty-emus-sort.md @@ -0,0 +1,5 @@ +--- +'@web/dev-server-polyfill': patch +--- + +publish as esm instead of commonjs diff --git a/packages/dev-server-polyfill/tsconfig.json b/packages/dev-server-polyfill/tsconfig.json index 5a84407f6..cd2d7b29d 100644 --- a/packages/dev-server-polyfill/tsconfig.json +++ b/packages/dev-server-polyfill/tsconfig.json @@ -3,7 +3,7 @@ { "extends": "../../tsconfig.node-base.json", "compilerOptions": { - "module": "commonjs", + "module": "ESNext", "outDir": "./dist", "rootDir": "./src", "composite": true, diff --git a/packages/dev-server-polyfill/tsconfig.override.json b/packages/dev-server-polyfill/tsconfig.override.json new file mode 100644 index 000000000..f30e25c3c --- /dev/null +++ b/packages/dev-server-polyfill/tsconfig.override.json @@ -0,0 +1,5 @@ +{ + "compilerOptions": { + "module": "ESNext" + } +} \ No newline at end of file diff --git a/packages/storybook-framework-web-components/tsconfig.json b/packages/storybook-framework-web-components/tsconfig.json index d5e47299b..5b296657f 100644 --- a/packages/storybook-framework-web-components/tsconfig.json +++ b/packages/storybook-framework-web-components/tsconfig.json @@ -45,6 +45,12 @@ }, { "path": "../storybook-builder/tsconfig.json" + }, + { + "path": "../rollup-plugin-import-meta-assets/tsconfig.json" + }, + { + "path": "../storybook-utils/tsconfig.json" } ], "include": [ diff --git a/tsconfig.json b/tsconfig.json index 63ad2ece7..a620d027e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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" }, @@ -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" }, @@ -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" },