Files
Yajbir Singh f1b860b25c
Some checks failed
check / markdownlint (push) Has been cancelled
check / spellchecker (push) Has been cancelled
updated
2025-12-11 19:03:17 +05:30

35 lines
843 B
JavaScript

import { resolve } from 'path';
import { monolithConf } from './rollup.common.js';
var sharedInput = './underscore-node-f-pre.js';
var sharedOutput = './underscore-node-f.cjs';
export default [
// ESM entry point for Node.js 12+.
{
input: 'underscore-node-mjs-pre.js',
external: sharedInput,
output: monolithConf({
file: 'underscore-node.mjs',
format: 'esm',
paths: {
[resolve(__dirname, sharedInput)]: sharedOutput,
},
}),
},
// CJS entry point for Node.js 12+, plus code shared with the ESM entry.
{
input: {
'underscore-node-f': sharedInput,
'underscore-node': 'underscore-node-cjs-pre.js',
},
preserveModules: true,
output: monolithConf({
entryFileNames: '[name].cjs',
dir: '.',
exports: 'auto',
format: 'cjs',
}),
},
];