Registry / devops / laravel-elixir-rollup-official

laravel-elixir-rollup-official

JSON →
library1.1.1jsnpmunverified

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-official
INSTALL
IMPORT
SIG · LARAVEL-ELIXIR-ROL
L
laravel-elixir-rollup-official
devopsjavascriptv1.1.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

elixir
const elixir = require('laravel-elixir');
import elixir from 'laravel-elixir';
This package uses CommonJS. ESM import is not supported.
mix.rollup
elixir(function(mix) { mix.rollup('main.js'); });
elixir.rollup('main.js');
rollup is a method on the mix object provided by elixir, not on elixir directly.
Rollup config object
elixir(function(mix) { mix.rollup('main.js', 'public/js', null, { plugins: [...] }); });
elixir(function(mix) { mix.rollup('main.js', null, null, [plugin1, plugin2]); });
The fourth argument expects a Rollup config object, not an array of plugins. Use { plugins: [...] }.

Installs and configures the package to compile main.js with Rollup via Laravel Elixir.

// Install: npm install laravel-elixir-rollup-official --save-dev // In gulpfile.js: const elixir = require('laravel-elixir'); elixir(function(mix) { mix.rollup('main.js'); // compiles resources/assets/js/main.js -> public/js/main.js }); // Run: gulp
Debug
Known issues
breakingRequires Laravel Elixir v6 or newer. Older versions are incompatible.
fix
Upgrade Laravel Elixir to v6+ or use an older version of this package.
affects: <1.0
gotchaIf you provide an array of source files without a custom base directory, the default base directory (resources/assets/js) is still used. Ensure paths are relative to that.
fix
Specify a custom base directory as the third argument or prefix paths with './' to use absolute paths.
affects: >=1.0
gotchaThe fourth argument is a Rollup config object, not a path to a config file. To use a rollup.config.js file, do not pass the fourth argument.
fix
Create rollup.config.js in project root or pass inline config object as fourth argument.
affects: >=1.0
deprecatedPackage is no longer actively maintained. Consider using Laravel Mix or direct Rollup integration.
fix
Migrate to Laravel Mix with @wordpress/scripts or rollup-plugin-laravel-mix.
affects: >=1.0
Errors
Common errors & fixes
Error: Cannot find module 'laravel-elixir-rollup-official'
Package not installed or not in node_modules.
fix
Run npm install laravel-elixir-rollup-official --save-dev in your project root.
gulp: Task 'default' not found
No gulpfile.js configured with Elixir or missing default task.
fix
Create a gulpfile.js with the required elixir setup and run 'gulp' (not 'gulp default').
TypeError: mix.rollup is not a function
The package is not required correctly or Elixir is not the right version.
fix
Ensure you have required 'laravel-elixir-rollup-official' in your gulpfile and that Elixir v6+ is installed.
Upgrade
Version history
1.1.1latest on npm
Audit
Dependencies
laravel-elixirrequiredpeer dependency - requires Elixir v6 or newer to function
Agent activity
2 hits · last 30 days
node
2
Resources
laravel-elixir-rollup-official — npm install laravel-elixir-rollup-official · libregistry