-
Notifications
You must be signed in to change notification settings - Fork 354
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
TypeError when creating a SourceMapGenerator from a SourceMapConsumer of an index map #345
Comments
Actually, it also seems to stem from the fact that the first line of |
There is a workaround for this issue: const consumer = await new sourcemap.SourceMapConsumer(map);
consumer.sourceRoot = null; // Workaround
const generator = sourcemap.SourceMapGenerator.fromSourceMap(consumer); // TypeError However, there is still a TypeError due to another issue in the underlying implementation:
It seems |
I am also facing this:
|
When calling
SourceMapGenerator.fromSourceMap
with aSourceMapConsumer
for an index map, the following error is thrown:test.js
The error seems to be due to a strict inequality (
!==
) check onsourceRoot
whereas all other checks againstsourceRoot
use loose inequality (!=
).The text was updated successfully, but these errors were encountered: