lib,src: extract sourceMappingURL from module#51690
lib,src: extract sourceMappingURL from module#51690unbyte wants to merge 7 commits intonodejs:mainfrom
Conversation
|
Review requested:
|
aduh95
left a comment
There was a problem hiding this comment.
LGTM if tests pass, left a few nits
joyeecheung
left a comment
There was a problem hiding this comment.
Shouldn't we extract the sourceURL using the V8 API as well?
This is what I want to do. In fact I initiated this PR after identifying several issues with the source map support in Node.js, notably:
This PR specifically addresses the handling of sourceMappingURL without delving into sourceURL-related changes. This limitation is intentional to keep the scope manageable for my first contribution to Node.js. Moving forward, I'm going to resolve the identified issues, including the extraction of sourceURL. |
|
I think it's okay to leave the source URL for a follow-up. Can you leave a TODO/FIXME comment for them? |
|
@joyeecheung |
|
Landed in fc0f2cf |
PR-URL: nodejs#51690 Refs: nodejs#51522 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Node.js used regex to extract sourceMappingURL from the source code
of ESM files. This method led to inaccuracies, notably the erroneous
extraction of url from strings. This change attempts to retrieving the
correct url from V8 for ESM files.
Refs: #51522