Skip to content

Wrong relative path for module-create in source map #994

@krampstudio

Description

@krampstudio

When generating a bundle with the options create : true and no optimizer, the source map contains an artificial entry module-create.js in the sources (from https://github.com/requirejs/r.js/blob/master/build/jslib/build.js#L2125)

The problem is the relative path to this entry seems to be generated from the root of the build location. In my case it contains

{
  "version":3,
  "sources":[
    //... all soures are listed with a correct rel path and then
    "../../../../../../../../../../../module-create.js"
]
//...
}

If this has no real impact on the browser debugging, it creates different source maps based on where you launch the build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions