Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After getting feedback from the community I believe adding react presets to core was not a good idea.
Therefore this PR introduces some breaking changes, that opens the this toolbox for frameworks like vue, svelte, angular and typescript.
What changes?
From now on webextension-toolbox only includes relevant presets needed to create a browser extension. Actually the only preset that is included is preset-env. This is preconfigured by the binary.
It configures the right
vendor
and thevendorVersion
.vendor
:chrome
,firefox
,edge
, etc.vendorVersion
: if not provided webextension-toolbox uses the last 3 Versions of the current vendor.How do I use react?
npm install @babel/preset-react --save-dev
.babelrc
file next to yourpackage.json
file and insert the following contents:Todo