Yunfei He

Results 368 comments of Yunfei He

The team now intend to have a non-official port of https://github.com/rolldown/rolldown/issues/1826#issuecomment-2266366448 under https://github.com/rolldown-contrib.

- We don't have `mode` concept so far. - `options` field may require a lot of work. - Rest are fine to support soon.

* **#4602** 👈 (View in Graphite) * `main` This stack of pull requests is managed by Graphite. Learn more about stacking.

@shulaoda Depend on the case, use `anyhow::Result` or `Result`. - `anyhow::Result` is for program errors. - `Result` is for business errors. We used to treat parsing errors as program errors....

Closed due to there is better solution on this: https://github.com/rolldown/rolldown/pull/1496.

So far only I could tell is that, we won't put effort on this in a quite of time due to we share the same predicament with esbuild > With...

My current take on this: - Rolldown won't support `amd` as a builtin output format. - If it's possible, we will add a offical/third-party plugin for support amd output. Similar...

Rolldown behaves the same as esbuild for bundling js https://esbuild.github.io/try/#YgAwLjI1LjUALS1leHRlcm5hbDpleHQtaW5kZXggLS1leHRlcm5hbDpleHQtZmlsZSAtLWJ1bmRsZSAtLWZvcm1hdD1lc20AZQBlbnRyeS5qcwBleHBvcnQgKiBmcm9tICdleHQtaW5kZXgnOwoKZXhwb3J0ICogZnJvbSAnLi9maWxlJzsKCgpleHBvcnQgY29uc3QgaW5kZXggPSB7fTsAAGZpbGUuanMAZXhwb3J0ICogZnJvbSAiZXh0LWZpbGUiOwoKZXhwb3J0IGNvbnN0IGZpbGUgPSB7fTs However, this behavior conflicts with the `rolldown-plugin-dts`, we need to figure out way to solve it.

related: https://github.com/rolldown/rolldown/issues/1940