Rollup build options for bytenode
See original GitHub issueWould be lovely to have more information of how the build process works as for me to understand how to include rollup options/plugins and manipulate the output process.
Specifically I’m interested on adding rollup-plugin-bytenode within the build process but couldn’t figure out how to do it exactly.
// vite.config.js:
import bytenode from 'rollup-plugin-bytenode';
const path = require('path');
const srcPath = path.resolve(__dirname, 'src');
module.exports = {
port: 4000,
open: false, // do not open the browser as we use electron
alias: {
// setup aliases for cleaner imports
'/~/': srcPath
},
optimizeDeps: {
exclude: [
'path',
'electron-window-state',
'electron-context-menu'
]
},
rollupInputOptions: {
input: 'src/main.js',
output: [
{
file: 'dist/main.js',
format: 'cjs'
}
],
plugins: [bytenode()]
}
};
Issue Analytics
- State:
- Created 3 years ago
- Comments:19 (4 by maintainers)
Top Results From Across the Web
rollup-plugin-bytenode - npm Package Health Analysis - Snyk
Rollup plugin for compile javascript code to byte code For more information about how to use this package see README.
Read more >rollup.js
To build different bundles with the same input, you supply an array of output options for each input: // rollup.config.js (building more than...
Read more >Bytenode NPM | npm.io
A minimalist bytecode compiler for Node.js. This tool truly compiles your JavaScript code into V8 bytecode, so that you can protect your source...
Read more >How to Bundle JavaScript With Rollup — Step-by-Step Tutorial
To make this actually do stuff, we need to update rollup.config.js . Inside, we import the Babel plugin, then add it to a...
Read more >How to Compile Node.js Code Using Bytenode? - HackerNoon
jsc of your JavaScript files. You can also bundle all your .js files using Browserify, then compile that single file into .jsc. Check...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hope this help you out.Other you can just call bytenode compiled js files instead of
rollup
androllup-plugin-bytenode
.@gianniskarmas I understand now. I think you could accomplish it by writing this in your
vite.config.js
: