Rollup plugin for compile JavaScript file to byte code. Use bytenode compiler.
npm i rollup-plugin-bytenode --save-dev
// or
yarn add rollup-plugin-bytenode --save-dev
rollup.config.js
import bytenode from 'rollup-plugin-bytenode';
export default {
input: 'main.js',
output: [
{
file: 'dist/main.js',
format: 'cjs'
}
],
plugins: [
bytenode()
]
}
MIT License Copyright (c) jakexchan