Laravel Elixir extension for transpiling ES6 JavaScript to ES5 using Babel. Version 0.2.0 is the latest stable release, last updated in 2015. This package allows mix.babel() calls in Laravel's Gulpfile to compile ES6 code with optional sourcemaps. It is part of the legacy Laravel Elixir ecosystem (v5/6) and is not compatible with Laravel Mix or modern build workflows. No longer maintained.
npm install laravel-elixir-babelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Install the package, require it in your Gulpfile, and call mix.babel() to transpile ES6 to ES5 using Babel.
Use Laravel Mix with Webpack (laravel-mix) instead, which includes Babel via mix.js().
Upgrade to Laravel Mix and use mix.js() for Babel transpilation.
Set sourceMaps: true in options but verify with browser developer tools.
Use elixir.scripts() combined with Babel CLI or switch to Laravel Mix.
Install laravel-elixir: npm install laravel-elixir --save-dev
Add require('laravel-elixir-babel') after requiring elixir.Ensure Babel is configured via .babelrc or use CommonJS require() in Gulpfile.