diff --git a/.changes/api-cjs-chunks.md b/.changes/api-cjs-chunks.md new file mode 100644 index 000000000..672e5b816 --- /dev/null +++ b/.changes/api-cjs-chunks.md @@ -0,0 +1,5 @@ +--- +"api": patch +--- + +CommonJS chunks are now properly exported with `.cjs` extension diff --git a/tooling/api/rollup.config.js b/tooling/api/rollup.config.js index 0790637ff..cc6c9665b 100644 --- a/tooling/api/rollup.config.js +++ b/tooling/api/rollup.config.js @@ -36,6 +36,7 @@ export default [ dir: 'dist/', entryFileNames: '[name].cjs', format: 'cjs', + chunkFileNames: '[name]-[hash].cjs', exports: 'named', globals: {} },