Skip to content

Commit ddcd923

Browse files
authored
fix(api): export commonjs chunks with .cjs extension, fix #1625 (#1627)
1 parent 0f86bc4 commit ddcd923

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changes/api-cjs-chunks.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"api": patch
3+
---
4+
5+
CommonJS chunks are now properly exported with `.cjs` extension

tooling/api/rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export default [
3636
dir: 'dist/',
3737
entryFileNames: '[name].cjs',
3838
format: 'cjs',
39+
chunkFileNames: '[name]-[hash].cjs',
3940
exports: 'named',
4041
globals: {}
4142
},

0 commit comments

Comments
 (0)