@ark-us/evm2wasm
Version:
This is a JS protope of a EVM to eWASM transcompiler
36 lines (34 loc) • 646 B
JavaScript
const resolve = require('@rollup/plugin-node-resolve');
const commonjs = require('@rollup/plugin-commonjs');
const json = require('@rollup/plugin-json');
const pkg = require('./package.json');
const entryPoint = './index.js';
module.exports = {
input: entryPoint,
output: [
{
file: pkg.main,
format: 'cjs', // commonJS
sourcemap: true,
},
{
file: pkg.module,
format: 'esm', // ES Modules
sourcemap: true,
},
{
file: pkg.browser,
format: 'umd',
name: 'index',
},
],
plugins: [
resolve(),
json(),
commonjs(),
commonjs({
exclude: 'node_modules',
ignoreGlobal: true,
}),
],
};