Skip to content

Sourcemaps support is broken #20

@lgringo

Description

@lgringo

Since version 0.7, sourcemaps are not relative paths anymore. Was working perfectly before.

Step to reprodruce
1/ Write a small AngularApp using browserify
2/ Create the bundle using "browserify --debug -t browserify-ngannotate myapp.js > bundle.js"
3/ Decode generated sourceMaps : "tail -1 bundle.js | cut -b 65- | base64 --decode
NB You need to count the number of characters to exclude (65 in my example)

With browserify-ngannotate 0.6 : Path to source are relative
With browserify-ngannotate 0.+7+: Path to source are absolute

When serving the app with http server, absolute sources can't be retrieved. Paths should remain relative.

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