feat(bundler): Integrate rolldown bundler support and update bundler selection logic

This commit is contained in:
Juergen Kunz
2025-06-19 20:10:45 +00:00
parent 09a470d409
commit 2a808cc186
10 changed files with 472 additions and 6 deletions

View File

@ -12,10 +12,17 @@ export class TsBundle {
) {
const done = plugins.smartpromise.defer();
const getBundlerPath = () => {
if (argvArg.bundler === 'esbuild') {
return './mod_esbuild/index.child.js'
switch (argvArg.bundler) {
case 'rolldown':
return './mod_rolldown/index.child.js';
case 'rollup':
return './mod_rollup/index.child.js';
case 'parcel':
return './mod_parcel/index.child.js';
case 'esbuild':
default:
return './mod_esbuild/index.child.js';
}
return './mod_esbuild/index.child.js'
}
const transportOptions: interfaces.IEnvTransportOptions = {
cwd: cwdArg,
@ -23,7 +30,6 @@ export class TsBundle {
to: toArg,
mode: argvArg && argvArg.production ? 'production' : 'test',
argv: {
bundler: 'esbuild',
...argvArg
}
}