Skip to content
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

Throws when source map is not found #103

Open
LarsDenBakker opened this issue Jul 9, 2020 · 1 comment
Open

Throws when source map is not found #103

LarsDenBakker opened this issue Jul 9, 2020 · 1 comment

Comments

@LarsDenBakker
Copy link

When a file points to a source map that doesn't exist it currently throws an error:

Error: An error occurred while trying to read the map file at <file path>
Error: ENOENT: no such file or directory, open <file path>

I'm trying to parse source maps delivered from the browser, so paths might not always match up perfectly. Would it make sense to have an option to ignore the error and continue without source maps?

@bcoe
Copy link
Member

bcoe commented Jul 16, 2020

@LarsDenBakke it seems reasonable to me that our default behavior would be to console.warn what do you think? an error seems a little heavy handed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants