-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source-map file name with query parameter, causes source-map not found #46
Comments
It should be an issue of thlorenz/convert-source-map // Try to read a source map from a 'sourceMappingURL' comment.
var converter = convert.fromSource(jsData);
if (!converter) {
converter = convert.fromMapFileSource(jsData, path.dirname(jsFile));
}
if (!converter) {
console.error('Unable to find a source map.');
console.error('See ', SOURCE_MAP_INFO_URL);
return null;
} |
As a workaround, you can pass in the path to the source map explicitly as a
second CLI parameter.
…On Wed, Mar 8, 2017 at 2:47 AM UncleBill ***@***.***> wrote:
It should be an issue of thlorenz/convert-source-map
<https://github.com/thlorenz/convert-source-map>
index.js#L87-L97
<https://github.com/danvk/source-map-explorer/blob/master/index.js#L87-L97>
:
// Try to read a source map from a 'sourceMappingURL' comment.
var converter = convert.fromSource(jsData);
if (!converter) {
converter = convert.fromMapFileSource(jsData, path.dirname(jsFile));
}
if (!converter) {
console.error('Unable to find a source map.');
console.error('See ', SOURCE_MAP_INFO_URL);
return null;
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAF__bxsk4GG6wLcGaG5TBvbnK8OEN9Jks5rjl0ZgaJpZM4MWczm>
.
|
Oh, I almost forgot that! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cli output
reproduce
Add query parameter to file name in source-map comment. (by my webpack config)
//# sourceMappingURL=app.js.map?85439c
The text was updated successfully, but these errors were encountered: