-
Notifications
You must be signed in to change notification settings - Fork 96
Wrong source map in require module #84
Copy link
Copy link
Open
Description
The extra code wrapped around s skews the source map of s. Is there any way to set the base position for the map or run the module code in an isolated context without changing source code?
Lines 167 to 168 in 29b559b
| source := "(function(exports, require, module) {" + s + "\n})" | |
| parsed, err := js.Parse(p, source, parser.WithSourceMapLoader(r.srcLoader)) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels