Skip to content

Wrong source map in require module #84

@ghost

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?

source := "(function(exports, require, module) {" + s + "\n})"
parsed, err := js.Parse(p, source, parser.WithSourceMapLoader(r.srcLoader))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions