Skip to content

Commit 4de1e44

Browse files
committed
refactor[ci/build]: dont generate sourcemaps for BROWSER_SCRIPT bundles
1 parent 52d542a commit 4de1e44

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/rollup/build.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ function getPlugins(
406406
// UMD builds are rarely used and not worth having sourcemaps.
407407
const needsSourcemaps =
408408
needsMinifiedByClosure &&
409+
// This will only exclude `unstable_server-external-runtime.js` artifact
410+
// To start generating sourcemaps for it, we should stop manually copying it to `facebook-www`
411+
// and force `react-dom` to include .map files in npm-package at the root level
412+
bundleType !== BROWSER_SCRIPT &&
409413
!isUMDBundle &&
410414
!sourcemapPackageExcludes.includes(entry) &&
411415
!shouldStayReadable;

0 commit comments

Comments
 (0)