{"id":21515,"library":"laravel-elixir-rollup-official","title":"Laravel Elixir Rollup Integration","description":"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.","status":"maintenance","version":"1.1.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","laravel","elixir","rollup"],"install":[{"cmd":"npm install laravel-elixir-rollup-official","lang":"bash","label":"npm"},{"cmd":"yarn add laravel-elixir-rollup-official","lang":"bash","label":"yarn"},{"cmd":"pnpm add laravel-elixir-rollup-official","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency - requires Elixir v6 or newer to function","package":"laravel-elixir","optional":false}],"imports":[{"note":"This package uses CommonJS. ESM import is not supported.","wrong":"import elixir from 'laravel-elixir';","symbol":"elixir","correct":"const elixir = require('laravel-elixir');"},{"note":"rollup is a method on the mix object provided by elixir, not on elixir directly.","wrong":"elixir.rollup('main.js');","symbol":"mix.rollup","correct":"elixir(function(mix) { mix.rollup('main.js'); });"},{"note":"The fourth argument expects a Rollup config object, not an array of plugins. Use { plugins: [...] }.","wrong":"elixir(function(mix) { mix.rollup('main.js', null, null, [plugin1, plugin2]); });","symbol":"Rollup config object","correct":"elixir(function(mix) { mix.rollup('main.js', 'public/js', null, { plugins: [...] }); });"}],"quickstart":{"code":"// Install: npm install laravel-elixir-rollup-official --save-dev\n// In gulpfile.js:\nconst elixir = require('laravel-elixir');\n\nelixir(function(mix) {\n  mix.rollup('main.js'); // compiles resources/assets/js/main.js -> public/js/main.js\n});\n\n// Run: gulp","lang":"javascript","description":"Installs and configures the package to compile main.js with Rollup via Laravel Elixir."},"warnings":[{"fix":"Upgrade Laravel Elixir to v6+ or use an older version of this package.","message":"Requires Laravel Elixir v6 or newer. Older versions are incompatible.","severity":"breaking","affected_versions":"<1.0"},{"fix":"Specify a custom base directory as the third argument or prefix paths with './' to use absolute paths.","message":"If 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.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Create rollup.config.js in project root or pass inline config object as fourth argument.","message":"The 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.","severity":"gotcha","affected_versions":">=1.0"},{"fix":"Migrate to Laravel Mix with @wordpress/scripts or rollup-plugin-laravel-mix.","message":"Package is no longer actively maintained. Consider using Laravel Mix or direct Rollup integration.","severity":"deprecated","affected_versions":">=1.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run npm install laravel-elixir-rollup-official --save-dev in your project root.","cause":"Package not installed or not in node_modules.","error":"Error: Cannot find module 'laravel-elixir-rollup-official'"},{"fix":"Create a gulpfile.js with the required elixir setup and run 'gulp' (not 'gulp default').","cause":"No gulpfile.js configured with Elixir or missing default task.","error":"gulp: Task 'default' not found"},{"fix":"Ensure you have required 'laravel-elixir-rollup-official' in your gulpfile and that Elixir v6+ is installed.","cause":"The package is not required correctly or Elixir is not the right version.","error":"TypeError: mix.rollup is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}