We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aaec9c commit 0c64e57Copy full SHA for 0c64e57
packages/angular_devkit/build_angular/src/utils/process-bundle.ts
@@ -56,7 +56,8 @@ async function processWorker(options: ProcessBundleOptions): Promise<void> {
56
// if code size is larger than 500kB, manually handle sourcemaps with newer source-map package.
57
// babel currently uses an older version that still supports sync calls
58
const codeSize = Buffer.byteLength(options.code, 'utf8');
59
- const manualSourceMaps = codeSize >= 500 * 1024;
+ const mapSize = options.map ? Buffer.byteLength(options.map, 'utf8') : 0;
60
+ const manualSourceMaps = codeSize >= 500 * 1024 || mapSize >= 500 * 1024;
61
62
// downlevel the bundle
63
let { code, map } = await transformAsync(options.code, {
0 commit comments