Repository navigation
lib: skip source maps in node_modules by default - #67627
legendecas wants to merge 1 commit into
Conversation
|
Review requested:
|
7312cac to
7bd74b0
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67627 +/- ##
==========================================
- Coverage 90.55% 90.54% -0.01%
==========================================
Files 801 803 +2
Lines 284215 285030 +815
Branches 54883 55002 +119
==========================================
+ Hits 257358 258091 +733
- Misses 17014 17095 +81
- Partials 9843 9844 +1
🚀 New features to boost your workflow:
|
mcollina
left a comment
There was a problem hiding this comment.
Frameworks like Next.js need source maps support to support a good debugging experience. I think if we want to do this, we need to add a CLI flag.
Also, this might be semver-major.
7bd74b0 to
cf691b4
Compare
|
@mcollina Next.js puts their compiled app code in This PR skips source map in This PR is intended to avoid source map overhead on Dug a bit, I think your point reminded me that some frameworks do depend on the generated-code bit. E.g. next.js has a non-default mode I have reverted the |
Signed-off-by: Chengzhong Wu <cwu631@bloomberg.net>
cf691b4 to
ab46878
Compare
This updates the flag
--enable-source-maps, skippingnode_modulesand generated code by default.If source map support for
node_modulesand generated code are needed, it can be enabled withmodule.setSourceMapsSupport(). This could improve general app development source map performance.