https://github.com/jakexchan/rollup-plugin-bytenode
Rollup plugin for compile js file to byte code
https://github.com/jakexchan/rollup-plugin-bytenode
Last synced: 7 months ago
JSON representation
Rollup plugin for compile js file to byte code
- Host: GitHub
- URL: https://github.com/jakexchan/rollup-plugin-bytenode
- Owner: jakexchan
- License: mit
- Created: 2020-05-24T15:30:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-08T10:17:55.000Z (over 2 years ago)
- Last Synced: 2024-04-29T05:43:13.664Z (about 1 year ago)
- Language: JavaScript
- Size: 396 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rollup-plugin-bytenode
[Rollup](https://github.com/rollup/rollup) plugin for compile JavaScript file to byte code. Use [bytenode](https://github.com/OsamaAbbas/bytenode) compiler.
## Install
```bash
npm i rollup-plugin-bytenode --save-dev
// or
yarn add rollup-plugin-bytenode --save-dev
```## Usage
rollup.config.js
```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](https://github.com/jakexchan)