3

What are the benefits of using worker-plugin compared to worker-loader for workers in webpack, and why? Which one is better?

Ethanol
  • 370
  • 6
  • 18

1 Answers1

1

The primary difference is that Worker-Plugin allows you to write completely standard syntax that would run without Webpack, and bundles it behind the scenes. Worker-Loader introduces its own API (though it is a simple one) that is specific to Webpack.

Jason Miller
  • 2,294
  • 1
  • 16
  • 14