1Mojolicious::Plugin::AsUsseetrPaCcoknM:to:rjPioiblpuietc:ei:doRuoPsle:lr:ulPplJDusog(ci3un)m:e:nAtsasteitoPnack::Pipe::RollupJs(3)
2
3
4
6 Mojolicious::Plugin::AssetPack::Pipe::RollupJs - Use Rollup.js module
7 bundler
8
10 use Mojolicious::Lite;
11 plugin AssetPack => {pipes => [qw(RollupJs)]};
12
14 Rollup is a module bundler for JavaScript which compiles small pieces
15 of code into something larger and more complex, such as a library or
16 application.
17
18 See <https://rollupjs.org/> for more details.
19
21 external
22 $array_ref = $self->external;
23 $self = $self->external(["vue"]);
24
25 Comma-separate list of module IDs to exclude.
26
27 globals
28 $hash_ref = $self->globals;
29 $self = $self->globals({vue => "Vue"});
30
31 See <https://rollupjs.org/guide/en#output-globals-g-globals>.
32
33 Any module IDs defined here are added to "external".
34
35 modules
36 $array_ref = $self->modules;
37 $self = $self->modules(["vue"]);
38
39 List of NPM modules that the JavaScript application depends on.
40
41 plugins
42 $array_ref = $self->plugins;
43 $self = $self->plugins([
44 [$module_name, $import_statement, $import_function_args],
45 ["rollup-plugin-vue", "VuePlugin"],
46 ["rollup-plugin-node-resolve", "resolve", {}],
47 ["rollup-plugin-commonjs", "commonjs", {sourceMap => false}],
48 ]);
49
50 List of NPM modules that should be loaded by Rollup.js.
51
53 add_global
54 $self = $self->add_global($key => $value);
55 $self = $self->add_global(qw(vue Vue));
56
57 Used to add a key/value pair to "globals".
58
59 process
60 See "process" in Mojolicious::Plugin::AssetPack::Pipe.
61
63 Mojolicious::Plugin::AssetPack.
64
65
66
67perl v5.34.0 Mojol2i0c2i2o-u0s1:-:2P1lugin::AssetPack::Pipe::RollupJs(3)