Skip to content

Add most options to the REPL#4824

Merged
lukastaegert merged 17 commits intomasterfrom
more-repl-options
Jan 26, 2023
Merged

Add most options to the REPL#4824
lukastaegert merged 17 commits intomasterfrom
more-repl-options

Conversation

@lukastaegert
Copy link
Copy Markdown
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:

Description

This will add nearly all remaining options to the REPL. Basically, all options are supported that can be mapped as a selection from a given list of values, a single free-text field, or a mapping of a given list of strings to new strings (like the globals option).
To that end, there is a new "add option" button to the bottom left of the options panel to add additional lines. Options that cannot be used due to a combination of other selected options or properties of the current modules are hidden. E.g. preserveModules is only offered for code-splitting formats, and AMD options are only offered for AMD and UMD formats.
The name of each option can be clicked to get a direct link to the documentation. So this allows to play around with many different options to get a feeling for them. It also allows us to get reproductions for issues involving options.
What is not supported is function-valued options and plugins as I am currently unsure if we should allow to embed arbitrary code in the REPL. But maybe if we move bundling into a worker later, we could also think about that as then, function options can no longer modify the DOM when executed.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 25, 2023

Thank you for your contribution! ❤️

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

npm install rollup/rollup#more-repl-options

or load it into the REPL:
https://deploy-preview-4824--rollupjs.netlify.apprepl/?pr=4824

@codecov
Copy link
Copy Markdown

codecov bot commented Jan 25, 2023

Codecov Report

Merging #4824 (3490ee6) into master (b362fb9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4824   +/-   ##
=======================================
  Coverage   98.99%   98.99%           
=======================================
  Files         219      219           
  Lines        7826     7826           
  Branches     2169     2169           
=======================================
  Hits         7747     7747           
  Misses         26       26           
  Partials       53       53           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@netlify
Copy link
Copy Markdown

netlify bot commented Jan 26, 2023

Deploy Preview for rollupjs ready!

Name Link
🔨 Latest commit 3490ee6
🔍 Latest deploy log https://app.netlify.com/sites/rollupjs/deploys/63d267715bbf86000938ee0b
😎 Deploy Preview https://deploy-preview-4824--rollupjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@lukastaegert lukastaegert merged commit 9ff0128 into master Jan 26, 2023
@lukastaegert lukastaegert deleted the more-repl-options branch January 26, 2023 12:01
@rollup-bot
Copy link
Copy Markdown
Collaborator

This PR has been released as part of rollup@3.11.0. You can test it via npm install rollup.

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.

2 participants