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

fix: metadata output breaks when common.css is output #556

Merged
merged 2 commits into from
Jan 28, 2019

Conversation

tivac
Copy link
Owner

@tivac tivac commented Jan 28, 2019

Description

Files that rollup hasn't actually processed but live within the processor instance are put into common.css. This file becomes part of the out set, but doesn't live within the bundle from rollup. If you don't validate that the file exists in the bundle before trying to do stuff with it things get real 🔥 💀-y.

Motivation and Context

Fixes a bug I haven't reported yet.

How Has This Been Tested?

Tests, real world project that surfaced the issue.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Specifically in the case where the plugin is outputting a "common.css" file that includes all the CSS that rollup itself didn't walk.
@codecov
Copy link

codecov bot commented Jan 28, 2019

Codecov Report

Merging #556 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #556      +/-   ##
==========================================
+ Coverage   99.03%   99.04%   +<.01%     
==========================================
  Files          46       46              
  Lines        1040     1042       +2     
  Branches      161      162       +1     
==========================================
+ Hits         1030     1032       +2     
  Misses         10       10
Impacted Files Coverage Δ
packages/rollup/rollup.js 100% <100%> (ø) ⬆️

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 ef5cfaa...2db09e6. Read the comment docs.

@tivac tivac merged commit bf50079 into master Jan 28, 2019
@tivac tivac deleted the metadata-common-explosion branch January 28, 2019 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant