fix(api): export commonjs chunks with .cjs extension, fix #1625 (#1627)

This commit is contained in:
Amr Bashir
2021-04-26 19:12:00 +02:00
committed by GitHub
parent 0f86bc4071
commit ddcd9233bd
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"api": patch
---
CommonJS chunks are now properly exported with `.cjs` extension

View File

@@ -36,6 +36,7 @@ export default [
dir: 'dist/',
entryFileNames: '[name].cjs',
format: 'cjs',
chunkFileNames: '[name]-[hash].cjs',
exports: 'named',
globals: {}
},