We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d29e9c8 commit 357f56cCopy full SHA for 357f56c
source-map-support.js
@@ -147,6 +147,8 @@ function retrieveSourceMapURL(source) {
147
148
// Get the URL of the source map
149
fileData = retrieveFile(source);
150
+ // Skip sourceMappingURL in coffeescript.js, meant for emitting source maps.
151
+ if (source.endsWith('node_modules/coffeescript/lib/coffeescript/coffeescript.js')) return null
152
var re = /(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg;
153
// Keep executing the search to find the *last* sourceMappingURL to avoid
154
// picking up sourceMappingURLs from comments, strings, etc.
0 commit comments