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

How to specify @babel/register for webpack 5 #12772

Closed
huiyifyj opened this issue Feb 24, 2021 · 3 comments
Closed

How to specify @babel/register for webpack 5 #12772

huiyifyj opened this issue Feb 24, 2021 · 3 comments

Comments

@huiyifyj
Copy link

For webpack 4, I can use es6 to edit configuration file by using --config-register / -r @babel/register flag.
Migrate to webpack 5, it doesn't work. It looks the flag be not supported.

@webpack-bot
Copy link
Contributor

For maintainers only:

  • webpack-4
  • webpack-5
  • bug
  • critical-bug
  • enhancement
  • documentation
  • performance
  • dependencies
  • question

@alexander-akait
Copy link
Member

You don't need it, webpack-cli automatically apply @babel/register on .babel.js files, anyway if you still have problems with migration please open an issue in webpack-cli repo

@huiyifyj
Copy link
Author

You don't need it, webpack-cli automatically apply @babel/register on .babel.js files, anyway if you still have problems with migration please open an issue in webpack-cli repo

Thanks for your reply. 👍

lukasjuhrich added a commit to agdsn/pycroft that referenced this issue May 23, 2022
As per this comment[1], webpack now does this automatically.

[1] webpack/webpack#12772 (comment)
lukasjuhrich added a commit to agdsn/pycroft that referenced this issue May 23, 2022
As per this comment[1], webpack now does this automatically.

[1] webpack/webpack#12772 (comment)
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

No branches or pull requests

3 participants