feat(bundler): Integrate rolldown bundler support and update bundler selection logic
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user