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

System format optional setters #3592

Merged
merged 5 commits into from May 27, 2020
Merged

System format optional setters #3592

merged 5 commits into from May 27, 2020

Conversation

guybedford
Copy link
Contributor

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:

Description

For SystemJS users, when using dependency inlining there are a large number of dependencies that don't have a corresponding setter. Currently we output a whole bunch of empty functions for each of these empty setters which seems unnecessary.

This PR allows a new option to output null instead of a complete function () {} for each of these setters.

It is only going to be supported in the next SystemJS hence why it needs an option. Eventually we can make this the default though.

@rollup-bot
Copy link
Collaborator

rollup-bot commented May 25, 2020

Thank you for your contribution! ❤️

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

npm install rollup/rollup#system-optional-setter

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

@codecov
Copy link

codecov bot commented May 25, 2020

Codecov Report

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

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3592   +/-   ##
=======================================
  Coverage   96.35%   96.35%           
=======================================
  Files         180      180           
  Lines        6147     6149    +2     
  Branches     1805     1807    +2     
=======================================
+ Hits         5923     5925    +2     
  Misses        111      111           
  Partials      113      113           
Impacted Files Coverage Δ
src/utils/options/mergeOptions.ts 100.00% <ø> (ø)
src/finalisers/system.ts 97.77% <100.00%> (+0.02%) ⬆️
src/utils/options/normalizeOutputOptions.ts 100.00% <100.00%> (ø)

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 eb6ce17...a7c244a. Read the comment docs.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lukastaegert lukastaegert merged commit 7285995 into master May 27, 2020
@lukastaegert lukastaegert deleted the system-optional-setter branch May 27, 2020 18:46
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.

None yet

3 participants