You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
668 B
23 lines
668 B
3 years ago
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
||
|
import commonjs from '@rollup/plugin-commonjs';
|
||
|
import alias from '@rollup/plugin-alias';
|
||
|
|
||
|
export default {
|
||
|
input: 'indexer.js',
|
||
|
output: {
|
||
|
format: 'cjs',
|
||
|
file: 'build/smva-indexer-bundle.js'
|
||
|
},
|
||
|
external: ['fs/promises'],
|
||
|
plugins: [nodeResolve({
|
||
|
exportConditions: ["node"],
|
||
|
}), commonjs(), alias({
|
||
|
entries: [
|
||
|
{ find: 'node:path', replacement: 'path' },
|
||
|
{ find: 'node:process', replacement: 'process' },
|
||
|
{ find: 'node:os', replacement: 'os' },
|
||
|
{ find: 'node:tty', replacement: 'tty' },
|
||
|
]
|
||
|
})]
|
||
|
};
|