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
Deploy Apps in Seconds with Cloud Run Icon
Deploy Apps in Seconds with Cloud Run

Host and run your applications without the need to manage infrastructure. Scales up from and down to zero automatically.

Cloud Run is the fastest way to deploy containerized apps. Push your code in Go, Python, Node.js, Java, or any language and Cloud Run builds and deploys it automatically. Get fast autoscaling, pay only when your code runs, and skip the infrastructure headaches. Two million requests free per month. And new customers get $300 in free credit.
Try Cloud Run 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