Is Webpack still required for Babel?

Hello, I was wondering if webpack is necessary to use Babel with Hugo.

Hi @zoliky, no, webpack is not required. You add your babel.config.js to the project and then compile as described in the documentation. If you run into compiling problems it’s most times one of two possible errors:

  • the plugin you are describing in your babel-config is not installed
  • your babel config needs to be in a certain way (with module.export and require instead of one of the other ways you might have used Babel in connection with WebPack).

See this:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.