esbuild-plugin-kontra

1.0.0 • Public • Published

Esbuild plugin kontra

Esbuild plugin for Kontra.js to remove unused code from Classes

Installation

npm install --save-dev esbuild-plugin-kontra 

Usage

// rollup.config.js
const esbuild = require('esbuild');
const kontra = require('esbuild-plugin-kontra');

esbuild
  .build({
    entryPoints: ['index.js'],
    bundle: true,
    outdir: 'build',
    plugins: [
      kontra({
        gameObject: {
          // enable only velocity and rotation functionality
          velocity: true,
          rotation: true
        },
        vector: {
          // enable vector length functionality
          length: true
        },
        // turn on debugging
        debug: true
      })
    ]
  });

Options

See Kontra.js docs for a list of available options. All options default to false.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.00latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.00

Package Sidebar

Install

npm i esbuild-plugin-kontra

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.36 kB

Total Files

3

Last publish

Collaborators

  • straker