Merge pull request #3907 from backstage/rugvip/exts

cli: use same extension for chunks as for the main built file
This commit is contained in:
Ben Lambert
2021-01-05 10:55:31 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Use consistent file extensions for JS output when building packages.
+2 -2
View File
@@ -62,7 +62,7 @@ export const makeConfigs = async (
output.push({
dir: 'dist',
entryFileNames: 'index.cjs.js',
chunkFileNames: 'cjs/[name]-[hash].js',
chunkFileNames: 'cjs/[name]-[hash].cjs.js',
format: 'commonjs',
sourcemap: true,
});
@@ -71,7 +71,7 @@ export const makeConfigs = async (
output.push({
dir: 'dist',
entryFileNames: 'index.esm.js',
chunkFileNames: 'esm/[name]-[hash].js',
chunkFileNames: 'esm/[name]-[hash].esm.js',
format: 'module',
sourcemap: true,
});