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

Store locations for removed comments in cache #3476

Merged
merged 5 commits into from Mar 31, 2020

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
Resolves #3465

Description

Comments are not part of the cache, which had the effect that sourcemap comments were no longer removed when rebuilding using cached modules. This fixes this by adding the location of sourcemap comments to the cache (I decided against adding all comments to avoid blowing up the cache unnecessarily).

@rollup-bot
Copy link
Collaborator

rollup-bot commented Mar 31, 2020

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#gh-3465-remove-inline-sourcemap-cache

or load it into the REPL:
https://rollupjs.org/repl/?circleci=10279

@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #3476 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3476   +/-   ##
=======================================
  Coverage   95.84%   95.84%           
=======================================
  Files         174      174           
  Lines        5898     5902    +4     
  Branches     1736     1737    +1     
=======================================
+ Hits         5653     5657    +4     
  Misses        126      126           
  Partials      119      119           
Impacted Files Coverage Δ
src/utils/transform.ts 98.43% <ø> (ø)
src/Module.ts 97.95% <100.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c69c41b...dee436e. Read the comment docs.

@lukastaegert lukastaegert force-pushed the gh-3465-remove-inline-sourcemap-cache branch 2 times, most recently from 8d56d96 to 328ab86 Compare March 31, 2020 19:33
@lukastaegert lukastaegert force-pushed the gh-3465-remove-inline-sourcemap-cache branch from 328ab86 to 8e841b2 Compare March 31, 2020 20:08
@lukastaegert lukastaegert merged commit 36cea37 into master Mar 31, 2020
@lukastaegert lukastaegert deleted the gh-3465-remove-inline-sourcemap-cache branch March 31, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inline sourcemaps and cache API cause incorrect sourcemap output
3 participants