Merge pull request #2787 from taras/tm/add-sourcemaps

Add sourcemaps to all distribution of every package
This commit is contained in:
Patrik Oldsberg
2020-10-08 15:58:27 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Including source maps with all packages
+2
View File
@@ -64,6 +64,7 @@ export const makeConfigs = async (
entryFileNames: 'index.cjs.js',
chunkFileNames: 'cjs/[name]-[hash].js',
format: 'commonjs',
sourcemap: true,
});
}
if (options.outputs.has(Output.esm)) {
@@ -72,6 +73,7 @@ export const makeConfigs = async (
entryFileNames: 'index.esm.js',
chunkFileNames: 'esm/[name]-[hash].js',
format: 'module',
sourcemap: true,
});
// Assume we're building for the browser if ESM output is included
mainFields.unshift('browser');