-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Sourcemaps for rollup bundles #3042
Conversation
Generated by 🚫 dangerJS |
@evans Oh man I'd be thrilled to merge that in there, ASAP. It's been driving me nuts, and I have a PR where I got a red-flagged code-coverage report and I want to increase it, and I can't figure out what lines are wrong. I'm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I found a bug. It's possible I don't understand the code-flow. I haven't run this code yet, I'm just trying to port it into apollo-link-rest (apollographql/apollo-link-rest#76).
config.output = Object.assign( | ||
{ | ||
file: 'lib/bundle.umd.js', | ||
format: 'umd', | ||
name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look at the structure of this diff, I think there's a bug.
It looks like you're embedding fields that were outside of config.output
, into the output object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a newer version of rollup wants these things moved round and renamed:
The following options have been renamed — please update your config: entry -> input, name -> output.name, sourceMap -> output.sourcemap, exports -> output.exports
7925a15
to
bad187b
Compare
The ts-jest package requires the
coverageMap
option to be enabled to get accurate coverage mapping back to the typescript files.The rollup bundles' sourcemaps were pointing to the compiled javascript files, now they point a the ts files.