Skip to content

jakexchan/rollup-plugin-bytenode

Repository files navigation

rollup-plugin-bytenode

Rollup plugin for compile JavaScript file to byte code. Use bytenode compiler.

Install

npm i rollup-plugin-bytenode --save-dev
// or
yarn add rollup-plugin-bytenode --save-dev

Usage

rollup.config.js

import bytenode from 'rollup-plugin-bytenode';

export default {
  input: 'main.js',
  output: [
    {
      file: 'dist/main.js',
      format: 'cjs'
    }
  ],
  plugins: [
    bytenode()
  ]
}

License

MIT License Copyright (c) jakexchan