ef4/fast-sourcemap-concat

v1.3.1 causes "Uncaught SyntaxError: Unexpected token :" error

Closed this issue · 2 comments

I'm using ember-auto-import which depends on broccoli-concat which depends on this package.

Recently did a reinstall of my node_modules packages causing the latest versions to be pulled in.

Since then I get the following exception:

Uncaught SyntaxError: Unexpected token :
    at Object../node_modules/showdown/dist/showdown.js (app.js:417)
    at __webpack_require__ (app.js:80)
    at Module.eval [as callback] (app.js:21)
    at Module.exports (loader.js:106)
    at Module._reify (loader.js:143)
    at Module.reify (loader.js:130)
    at Module.exports (loader.js:104)
    at Module._reify (loader.js:143)
    at Module.reify (loader.js:130)
    at Module.exports (loader.js:104)

Was able to work around this issue by locking this package to 1.3.0 with the following in my package.json.

"resolutions": {
    "fast-sourcemap-concat": "1.3.0"
}
ef4 commented

I think this is a bug in source-map-url 0.4.0, introduced here. It now matches too broadly and results in invalid Javascript.

ef4 commented

Fixed by #54