-
Notifications
You must be signed in to change notification settings - Fork 7
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
issue adding plugin to .babelrc #5
Comments
You need to install the source-map-support module:
|
ahh musta missed it. my bad. why not install that module as a dependency or at least indicate it as a peer? |
Babel runs at compile time, and the dependency is needed at runtime. In practice you'll usually be bundling source-map-support locally for development and disabling it for production, in which case it would make sense to peer-depend on it, but that's just a convention, not an intrinsic requirement of this plugin. For example, a project could be compiled in one environment (source-map-support not needed), tested in a CI environment (source-map-support needed), and deployed to another (source-map-support not needed). |
Hi there, trying to get your module working in attempt to fix some linenumber issues with mocha/babel.
getting the follow error:
have the following .babelrc file where the plugin is being used:
and the test is run with babel-instanbul
"test:unit": "cross-env NODE_ENV=test babel-node node_modules/.bin/babel-istanbul cover --config=istanbul.json --dir coverage/unit node_modules/.bin/_mocha -- --require node_modules/ignore-styles 'client/**/*.spec.unit.js'",
its possible the error is coming from babel-istanbul as that tool is somewhat outdated.
The text was updated successfully, but these errors were encountered: