feat(bundler): Introduce rspack bundler support and update multi-bundler workflow

This commit is contained in:
Juergen Kunz
2025-06-19 20:37:21 +00:00
parent 2bc219e3bc
commit a4b6956072
12 changed files with 539 additions and 24 deletions

View File

@ -39,10 +39,15 @@ export class TsBundleProcess {
},
});
const outputDir = plugins.path.dirname(toArg);
const outputFilename = plugins.path.basename(toArg);
await result.write({
file: toArg,
dir: outputDir,
entryFileNames: outputFilename,
format: 'es',
sourcemap: true,
inlineDynamicImports: true,
});
}
@ -66,11 +71,16 @@ export class TsBundleProcess {
},
});
const outputDir = plugins.path.dirname(toArg);
const outputFilename = plugins.path.basename(toArg);
await result.write({
file: toArg,
dir: outputDir,
entryFileNames: outputFilename,
format: 'es',
sourcemap: true,
minify: true,
inlineDynamicImports: true,
});
}
}