You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-import plugins from config (package.json, babelrc, presets)
🤔 Expected Behavior
Import a typical React project requires no setup.
😯 Current Behavior
Import a typical setup requires knowing you need plugins and which, manually adding them individually or with babel-preset-stage-x (multiple choices), knowing how to config, and manually adding a config (2 choices where). We're accustomed to starting every project that way but not as welcoming as it could be.
💁 Possible Solution
Additional Babel plugins
Add inside getEnvConfig and getJSXConfig respectively here:
🙋 feature request
Additional Babel plugins notably:
package.json
,babelrc
, presets)🤔 Expected Behavior
Import a typical React project requires no setup.
😯 Current Behavior
Import a typical setup requires knowing you need plugins and which, manually adding them individually or with
babel-preset-stage-x
(multiple choices), knowing how to config, and manually adding a config (2 choices where). We're accustomed to starting every project that way but not as welcoming as it could be.💁 Possible Solution
Additional Babel plugins
Add inside
getEnvConfig
andgetJSXConfig
respectively here:parcel/src/transforms/babel.js
Lines 104 to 105 in 871ffc7
Auto-import plugins
localRequire
all presets and plugins fromgetBabelConfig
here:parcel/src/transforms/babel.js
Lines 58 to 60 in 871ffc7
🔦 Context
#1632
"Fastest/easiest way to add Object spread to @parceljs ?"
"Just make sure to include babel-plugin-macros so your users can enjoy some zero config Babel plugin transforms too! 👍"
💻 Examples
TypeScript-Babel-Starter
The text was updated successfully, but these errors were encountered: