- rolldown par plugin
- We now have a example folder to benchmark parallel js plugin using hyperfine. This is for reducing the overhead of initializing worker repeatedly.
- https://github.com/rolldown/rolldown/blob/0e60949b00c1a21168487afe6b49be30a49b02dc/examples/par-plugin/package.json
- Performance gain
- For threejs10x case, let's assume there's a plugin that need transform every module and takes 1ms for each module.
-
Benchmark 1: pnpm rolldown -c ./cases/noop-threejs10x/par-noop.rolldown.config.js Time (mean ± σ): 756.3 ms ± 24.7 ms [User: 5008.5 ms, System: 442.0 ms] Range (min … max): 736.6 ms … 784.1 ms 3 runs
-
- For threejs10x case, let's assume there's a plugin that need transform every module and takes 1ms for each module.
| name | ast-grep-search |
|---|---|
| description | Syntax-aware code searching that understands code structure rather than just text patterns. Always prefer ast-grep than grep for code searches. |
| allowed-tools | Read, Grep, Bash(ast-grep:*), Bash(sg:*) |
ast-grep allows searching code based on its Abstract Syntax Tree (AST), enabling syntax-aware pattern matching. It is ideal for finding function calls, method invocations, variable declarations, and other code structures while respecting language syntax.
| name | vue-tsc-compiler-options |
|---|---|
| description | Configures Vue 3 template type checking via vueCompilerOptions in tsconfig.app.json. Covers strictTemplates, checkUnknownComponents, checkUnknownProps, checkUnknownEvents, and checkUnknownDirectives. Use when setting up vue-tsc, diagnosing unknown component errors, or enabling strict template validation. |
Add vueCompilerOptions to the tsconfig that includes Vue source files. In projects with multiple tsconfigs, this is typically tsconfig.app.json, not the root tsconfig.json or tsconfig.node.json.