-
Notifications
You must be signed in to change notification settings - Fork 258
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
Remove need for node when generating source maps #39
Comments
Yeah, I think we should have an option to disable applying original source maps (this is to convert source maps of generated input files, such as Sass, to the output source map). Will work on this. |
Best settings is no settings :). Maybe |
The reason I added an option for this is so that (a) behavior does not unexpectedly change when running in browser and (b) this option may be useful for people who do not want this but are running it on Node. |
As someone using it, I'm fine with specifying a setting, and to me that seems like it would be better, fwiw. |
Add option to disable processing input source maps (fixes #39)
I'm using this library in the browser by bundling it with browserify. Everything works fine except when I want to generate source maps. I'll get an error because
fs.readFileSync
isn't defined. The code path that uses readFile doesn't seem necessary to generate source maps and seems to only be used to apply any original source maps (I'm a bit unclear on that use case):Right now I'm commenting that part out, but it would be nice to have it work out of the box. If there's any way to put the
readFile
part behind a conditional, that would be great.The text was updated successfully, but these errors were encountered: