Packager Docs
v0.1.9 | Pre-Alpha
Getting StartedConfigurationAPI Reference
Plugins
RoadmapREPL

API Reference

constructor

  • Type
    PackagerOptions
  • Default
    {}
  • Usage
const packager = new Packager({
sourcemaps: true
});

bundle

  • Type
    BundleOptions
  • Default
    {}
  • Usage
const packager = new Packager({
sourcemaps: true
});
const files = [
{
name: "app.js",
path: "/src/app.js",
code: `import Vue from 'vue';`,
entry: true
}
];
packager.bundle(files, {
dependencies: {
vue: "2.6.10"
}
});

registerPlugin

  • Type
    PluginAPI
  • Usage
const packager = new Packager();
const cssPlugin = {
// plugin
};
packager.registerPlugin(cssPlugin);