Open unlight opened 7 years ago
Mention mainterners of convert-source-map
@thlorenz
Same issue here. @unlight did you find a workaround?
I don't know what exactly trips up devtool
, but convert-source-map just contains a valid JS comment.
If devtool gets confused with JS comments then it needs to be fixed here instead of trying to fix the symptom cases that causes it to trip.
devtool@2.3.0
Fails with error:
Some research:
mapFileCommentRegex = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/){1}[ \t]*$)/mg
is incorrect. It detect regexp in the middle contents of the file (I suppose it should match only last line).It detects comment
sourceMappingURL=foo.js.map
fromsource-map-support/source-map-support.js