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.
32 lines
991 B
32 lines
991 B
import alias from '@rollup/plugin-alias';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import json from '@rollup/plugin-json';
|
|
import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
|
|
export default {
|
|
input: 'sign-bundle.mjs',
|
|
output: {
|
|
format: 'cjs',
|
|
file: 'build/sign-bundle.js',
|
|
sourcemap: 'inline',
|
|
},
|
|
external: ['fs/promises', 'fs', 'path', 'process', 'os', 'tty', 'minisign'],
|
|
plugins: [
|
|
alias({
|
|
entries: [
|
|
{ find: 'node:path', replacement: 'path' },
|
|
{ find: 'node:process', replacement: 'process' },
|
|
{ find: 'node:os', replacement: 'os' },
|
|
{ find: 'node:tty', replacement: 'tty' },
|
|
{ find: 'node:fs', replacement: 'fs' },
|
|
]
|
|
}),
|
|
commonjs(),
|
|
json({
|
|
compact: true,
|
|
}),
|
|
nodeResolve({
|
|
exportConditions: ["node"],
|
|
preferBuiltins: true,
|
|
}),]
|
|
};
|
|
|