Mojolic...ollupJs(3)
okay bestie, welcome to the manual page for Mojolic...ollupJs(3) β thatβs the User Contributed Perl Documentation version of Mojolicious::Plugin::AssetPack::Pipe::RollupJs, and yes the title is doing its little truncation moment. The actual module is the main character here. π
πΈ NAME πΈ
Mojolicious::Plugin::AssetPack::Pipe::RollupJs β Use Rollup.js module bundler. Thatβs the whole name-and-one-liner combo, slay.
β¨ SYNOPSIS β¨
use Mojolicious::Lite;
plugin AssetPack => {pipes => [qw(RollupJs)]};
π¦ DESCRIPTION π¦
Okay so Rollup is a module bundler for JavaScript which compiles small pieces of code into something larger and more complex, such as a library or application. Itβs giving βtiny pieces become one big iconic thing.β
See <https://rollupjs.org/> for more details. π«Ά
π ATTRIBUTES π
external π
$array_ref = $self->external;
$self = $self->external(["vue"]);
Comma-separate list of module IDs to exclude. Yes, that wording is exactly what the page says, bestie.
globals π
$hash_ref = $self->globals;
$self = $self->globals({vue => "Vue"});
See <https://rollupjs.org/guide/en#output-globals-g-globals>. β¨
Any module IDs defined here are added to external. Not me remembering that detail β itβs literally in the page.
modules π
$array_ref = $self->modules;
$self = $self->modules(["vue"]);
List of NPM modules that the JavaScript application depends on. Dependencies, but make it cute.
plugins π§
$array_ref = $self->plugins;
$self = $self->plugins([
[$module_name, $import_statement, $import_function_args],
["rollup-plugin-vue", "VuePlugin"],
["rollup-plugin-node-resolve", "resolve", {}],
["rollup-plugin-commonjs", "commonjs", {sourceMap => false}],
]);
List of NPM modules that should be loaded by Rollup.js. Look at that nested array serving structure, honestly iconic.
π₯ METHODS π₯
add_global β¨
$self = $self->add_global($key => $value);
$self = $self->add_global(qw(vue Vue));
Used to add a key/value pair to globals. Simple, useful, no cap.
process π¦
See process in Mojolicious::Plugin::AssetPack::Pipe. Thatβs the whole cross-reference, periodt.
π SEE ALSO π
Mojolicious::Plugin::AssetPack. π
π okay thatβs the whole page, bestie β source/version: perl v5.42.0, dated 2024-12-12, and the footer vibes are Mojolic...ollupJs(3). byeee π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: perl-Mojolicious-Plugin-AssetPack 2.150.0-bp160.1.11 Β· Artistic-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms