No description, website, or topics provided.
JavaScript TypeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
README.md
fuse.js
package.json

README.md

fuse-box-rollup-example

This example demonstrates a built-in integration with Rollup

Roll Roll Roll!

npm install
node fuse

To minify:

node fuse --production

It currently works only with TypeScript, and uses it to transpile from es6 to es5.

FuseBox.init({
    homeDir: "src",
    outFile: "fuse.rollup.bundle.js",
    rollup: {
        bundle: {
            moduleName: "Fuse4ever"
        },
        entry: `index.js`,
        treeshake: true
    }
});

With this minimalist config you will get:

  • Transpile TypeScript to es6
  • Rollup
  • Cleanup
  • Transpile from es6 to es5