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
Currently, webpacker copies the pre made babel.config.js into your project when the install script is run, however this leads to some issues:
users who would never touch their babel.config.js now have a complicated file they have to maintain
updates to babel.config.js in webpacker repo have to be manually grabbed by users
the babel.config.js in the project uses require on webpacker dependencies, which is not ideal and is a blocker to adopting Yarn 2 Yarn 2.0 (Yarn Plug’n’Play) #2112
To solve these issues, I think webpacker (or an accompanying package) should provide a babel preset that projects can then use:
This would greatly simplify the configuration for basic cases, while still allowing the flexibility to add additional configuration or ignoring the preset completely for advanced cases.
I am willing to help out with this and can create a PR if needed.
The text was updated successfully, but these errors were encountered:
Currently, webpacker copies the pre made babel.config.js into your project when the install script is run, however this leads to some issues:
require
on webpacker dependencies, which is not ideal and is a blocker to adopting Yarn 2 Yarn 2.0 (Yarn Plug’n’Play) #2112To solve these issues, I think webpacker (or an accompanying package) should provide a babel preset that projects can then use:
or
This would greatly simplify the configuration for basic cases, while still allowing the flexibility to add additional configuration or ignoring the preset completely for advanced cases.
I am willing to help out with this and can create a PR if needed.
The text was updated successfully, but these errors were encountered: