Skip to content

Commit

Permalink
Stop embedding source files into sourcemap
Browse files Browse the repository at this point in the history
It bloats sourcemaps and take quite bit of a time in bundling. This
improves the bundling time at an observable level.

PiperOrigin-RevId: 252503518
  • Loading branch information
gkdn authored and Copybara-Service committed Jun 10, 2019
1 parent 87d0d13 commit 5b0583c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_defs/internal_do_not_use/j2cl_js_common.bzl
Expand Up @@ -45,6 +45,9 @@ def js_devserver(
compilation_level = "BUNDLE",
defs = entry_point_defs,
deps = deps,
# For J2CL it is in impractical to embed all source into sourcemap since
# it bloats sourcemaps as well as it slows down bundling.
nodefs = ["--source_map_include_content"],
)

web_library(
Expand Down

0 comments on commit 5b0583c

Please sign in to comment.