feat(bundler): Introduce rspack bundler support and update multi-bundler workflow
This commit is contained in:
@ -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,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user