Closed zhangfisher closed 2 months ago
Thanks for your dogfooding~
The 'minify' option seems to be ineffective
minify
was forcibly disabled by default and currently we does not support overriding it through configuration.
No
ESM
product was generated
Rslib is still in its early (dogfooding) stages. We plan to provide it to community users in one or two months. Now it still depends on a canary version of Rspack to make it work correctly.
Compared to
TSUP
, the speed seems to have not improved
We haven't done any performance optimization yet, and the main time-consuming step I think is probably tsc
generating types.
Cannot get final name for export 'getSnap'
has been fixed by https://github.com/web-infra-dev/rspack/pull/7479 which was shipped with rspack 1.0.0-beta.4
Same, Waiting for fix..
Version
Details
export default defineConfig({ lib: [ { format: 'esm', dts:{ bundle:true, },
output: { minify: true,
distPath: { root: './dist/esm', }, }, }, { format: 'cjs', dts:{ bundle:true, },
output: { minify: true, distPath: { root: './dist/cjs', }, }, }, ], source: { entry: { index: './src/index.ts', }, }, output: { target: 'node', }, });
ESM
product was generatedTSUP
, the speed seems to have not improvedReproduce link
https://github.com/zhangfisher/speed-form
Reproduce Steps
cd packages/reactive pnpm build:rslib