I am using the module to work out which files are needed and to copy them into another build directory. The problem whilst debugging is that the output file does not exactly match the source file, because the escodegen generate method strips out new lines, and a bunch of other things.
For development it would make sense to have an option like preserveFiles that will not modify the file, so that the output contents ends up being the same as the source file.
I believe I see the fix but want to run it by you, perhaps there is another option that can be passed to the escodegen generate that I've not seen.
I'll send a pull request soon.
thanks
I am using the module to work out which files are needed and to copy them into another build directory. The problem whilst debugging is that the output file does not exactly match the source file, because the escodegen generate method strips out new lines, and a bunch of other things. For development it would make sense to have an option like
preserveFiles
that will not modify the file, so that the output contents ends up being the same as the source file. I believe I see the fix but want to run it by you, perhaps there is another option that can be passed to the escodegen generate that I've not seen. I'll send a pull request soon. thanks