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

Ignore source-map if file doesn't have a reference comment #140

Open
TitanNano opened this issue Mar 23, 2017 · 3 comments
Open

Ignore source-map if file doesn't have a reference comment #140

TitanNano opened this issue Mar 23, 2017 · 3 comments

Comments

@TitanNano
Copy link

I have a couple of source files which are transpiled, but a few of them are not. Now remap throws an exception because no source-map can be found. Would it be possible to just ignore these files?

@dylans
Copy link
Contributor

dylans commented Mar 27, 2017

Anything is possible of course... we need to know a bit more detail on what you're doing exactly to suggest a good approach. exclude would be the first option to consider, but it's not clear from your description if that's enough for the problem you are trying to solve.

@TitanNano
Copy link
Author

@dylans I have a file structure like this:

/root/dir/es6/source.js
/root/es6/source.js
/root/node/source1.js
/root/node/source2.js

all files except /root/node/ are transpiled to /root/testable/.
After testing I remap the results from /root/testable/ back to /root/, but since I also test files in /root/node/ these do not have a source map and the remapping fails.

@dylans dylans added this to the 0.10.0 milestone Mar 31, 2017
@eashkhatri-3pg
Copy link

eashkhatri-3pg commented Apr 21, 2017

I am new to node js, I have my application code and tests written in ES5. I am using Jasmine and Karma. While running the tests it shows the warning 'Could not find source map for: "' + filePath + '"', but it generates the coverage report successfully. Is it any way to get rid of this warning? Thanks in advance :)

@dylans dylans removed this from the 0.10.0 milestone Jan 11, 2018
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

3 participants