paquet-bundler

0.0.2 • Public • Published

paquet

A simple module bundler written in JavaScript. Handles import and require, bundles your node_modules as well!

Install

npm install paquet-bundler

Getting Started

Paquet is very simple to use. Simply specify your entry file and output file and let Paquet do the rest!

  paquet --entry path/to/entry.js --out path/of/bundle.js

Specifying Environment Variables

paquet --entry path/to/entry.js --out path/of/bundle.js --env { VAR1: "VAR1", VAR2: "VAR2" }

Using a confg file

Example paquet.config.js File

module.exports = {
  entry: 'path/to/entry.js',
  out: 'path/to/dist/bundle.js',
  env: { VAR1: "VAR1", },
  mutators: [
    // { before: (code) => code, after: (code) => code }
  ],
  plugins: [
    // not implemented yet
  ]
}

Run paquet --config ./paquet.config.js

Mutators

Mutators are functions that change code at the module level, you can have a mutator for before ES6->ES5 code transpilation or after.

Plugins

Not implemented yet.

Readme

Keywords

Package Sidebar

Install

npm i paquet-bundler

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

55.7 kB

Total Files

16

Last publish

Collaborators

  • helloitsian