Operating System:
Windows 10 but running linux on docker (virtualbox)
Node Version:
8.9.4
NPM Version:
5.6.0
JSPM OR Webpack AND Version
JSPM 0.16.53
Browser:
N/A
Language:
TypeScript 2.7.1
Current behavior:
For non-dev environments I build the sourcemaps with a remote sourceRoot in the .js file as I want to package all the typescript files and not have them available to non-support users etc.
These map files get build correctly e.g.
{"version":3,"sources":["../src/app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUI,.....blah blah blah","file":"app.js","sourceRoot":"https://some-location/app-build-123/src"}
BUT in the bundled map file that contains references to all the typescript files I get:
{"version":3,"sources":["https:/some-location/app-build-123/src/app.ts", blah blah blah....
`
NOTE only one '/' after https.
WORKAROUND:
I played around with trying to escape the '/'s and \// works but I don't think it's correct/I'm not sure why. I've have expected \/\/ to work if escaping but it didn't.
Expected/desired behavior:
What is the expected behavior?
It shouldn't lose the '/' and no escaping should be needed and/or documentation updated to describe this scenario and the correct procedure to get the expected results.
What is the motivation / use case for changing the behavior?
Lost several hours trying to debug this and play around with the escaping. Couldn't find any documentation relating to what I wanted to achieve.
(Aside - the documentation on the bundler sourcemaps is pretty much non existent.)
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 10 but running linux on docker (virtualbox)
Node Version: 8.9.4
NPM Version: 5.6.0
JSPM OR Webpack AND Version JSPM 0.16.53
Browser: N/A
Language: TypeScript 2.7.1
Current behavior:
For non-dev environments I build the sourcemaps with a remote sourceRoot in the .js file as I want to package all the typescript files and not have them available to non-support users etc.
These map files get build correctly e.g.
{"version":3,"sources":["../src/app.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAUI,.....blah blah blah","file":"app.js","sourceRoot":"https://some-location/app-build-123/src"}
BUT in the bundled map file that contains references to all the typescript files I get:
{"version":3,"sources":["https:/some-location/app-build-123/src/app.ts",
blah blah blah.... ` NOTE only one '/' after https.My bundle options are:
"options": { "sourceMaps": true, "inject": true, "minify": true, "depCache": true, "rev": true }
WORKAROUND: I played around with trying to escape the '/'s and \// works but I don't think it's correct/I'm not sure why. I've have expected \/\/ to work if escaping but it didn't.
Expected/desired behavior:
What is the expected behavior? It shouldn't lose the '/' and no escaping should be needed and/or documentation updated to describe this scenario and the correct procedure to get the expected results.
What is the motivation / use case for changing the behavior?
Lost several hours trying to debug this and play around with the escaping. Couldn't find any documentation relating to what I wanted to achieve.
(Aside - the documentation on the bundler sourcemaps is pretty much non existent.)