Wei
Wei
A minimal reproduction with webpack. https://stackblitz.com/edit/node-oapeg8?file=webpack.config.js,package.json,bar.js,dist-single-entry%2Fmain.mjs,README.md Currently, the main issue is that when there are multiple entries, the bailout reasons between different entries are not isolated. This affects the concatenation...
- webpack / Rspack will adding `//` to strip the shebang, see https://github.com/webpack/webpack/pull/13961. - webpack / Rspack will not hoist shebang to the top of the bundle intentionally. - esbuild...
As a Rsbuild plugin, the DTS plugin could add a new config field, and defaults to Rsbuild's `output.cleanDistPath` while could be altered by user. In Rslib, we don't need to...
Thanks for the PR, this feature should be associated with many capabilities, and there are many fields to check (main / module / exports / types). It would be helpful...
~~Closed as we already force concatenate modules in `modern-module`.~~
Yeah! Using `package.json` as the single source of truth is in plan. Rslib also should check the correctness with it when providing a `rslib.config` file. We may support `autoExternal` at...
It could be tree-shaked if no side-effect performed in `new`, just like in this case. But Rollup seems not considering at all as of now https://rollupjs.org/repl/?version=4.28.1&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCU3QiUyMGIlMjAlN0QlMjBmcm9tJTIwJy4lMkZxdXguanMnJTVDbmNvbnNvbGUubG9nKGIpJTIyJTJDJTIyaXNFbnRyeSUyMiUzQXRydWUlMkMlMjJuYW1lJTIyJTNBJTIybWFpbi5qcyUyMiU3RCUyQyU3QiUyMmNvZGUlMjIlM0ElMjJjbGFzcyUyMEElMjAlN0IlNUNuJTIwJTIwJTIwbmV3JTIwKCklN0IlNUNuJTIwJTIwJTIwJTIwJTIwd2luZG93LnglMjAlM0QlMjAxJTVDbiUyMCUyMCUyMCU3RCU1Q24lN0QlNUNuJTVDbmV4cG9ydCUyMGNvbnN0JTIwYSUyMCUzRCUyMG5ldyUyMEEoKSUzQiU1Q25leHBvcnQlMjBjb25zdCUyMGIlMjAlM0QlMjAxJTNCJTIyJTJDJTIyaXNFbnRyeSUyMiUzQWZhbHNlJTJDJTIybmFtZSUyMiUzQSUyMnF1eC5qcyUyMiU3RCU1RCUyQyUyMm9wdGlvbnMlMjIlM0ElN0IlMjJvdXRwdXQlMjIlM0ElN0IlMjJmb3JtYXQlMjIlM0ElMjJlcyUyMiU3RCU3RCU3RA==
Same bug as https://github.com/web-infra-dev/rspack/issues/8557, but more minimal codebase reproduction.
- In unbundle mode, you could set `compilerOptions.declarationMap` to `true` to emit the map, Rslib will do nothing here. - In bundle mode, we use api-extractor to bundle the d.ts...
Got it, what I'm expecting might be Error Boundaries from the default theme. The boundary could include MDX content which is prone to throw error.