Adds Rollup.js support to Laravel Elixir builds. Current version 1.1.1, requires Elixir v6+. This extension allows compiling JavaScript modules with Rollup, supporting custom source/output directories and Rollup config files or inline configuration. It is specific to the Laravel Elixir build system and is not actively maintained (last release 2016). Differentiators: native Elixir integration, no need for Gulp plugins, and supports Rollup's tree-shaking and ES module bundling.
npm install laravel-elixir-rollup-officialVerified import paths — ran on the pinned version, not inferred.
Installs and configures the package to compile main.js with Rollup via Laravel Elixir.
Upgrade Laravel Elixir to v6+ or use an older version of this package.
Specify a custom base directory as the third argument or prefix paths with './' to use absolute paths.
Create rollup.config.js in project root or pass inline config object as fourth argument.
Migrate to Laravel Mix with @wordpress/scripts or rollup-plugin-laravel-mix.
Run npm install laravel-elixir-rollup-official --save-dev in your project root.
Create a gulpfile.js with the required elixir setup and run 'gulp' (not 'gulp default').
Ensure you have required 'laravel-elixir-rollup-official' in your gulpfile and that Elixir v6+ is installed.