This package allows transpiling JavaScript files using Babel and webpack. Within your webpack configuration object, you'll need to add the babel-loader to the list of modules. You can pass options to the loader by using the options property. Make sure you are transforming as few files as possible. You can also speed up babel-loader by as much as 2x by using the cacheDirectory option. This will cache transformations to the filesystem. Babel uses very small helpers for common functions such as _extend. By default, this will be added to every file that requires it. You can instead require the Babel runtime as a separate module to avoid the duplication. Webpack supports bundling multiple targets. For cases where you may want different Babel configurations for each target (like web and node), this loader provides a target property via Babel's caller API.

Features

  • Customize config based on webpack target
  • Exclude libraries that should not be transpiled
  • Allow loaders to make additional tweaks to it
  • You can pass options to the loader by using the options property
  • Split custom options out of babel-loader's options
  • Allows transpiling JavaScript files using Babel and webpack

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Babel Loader

Babel Loader Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Babel Loader!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

JavaScript

Related Categories

JavaScript Software Development Software

Registered

2021-11-24