Skip to content

Commit c53fc9a

Browse files
committed
docs: add inline helper functions
1 parent 4f83186 commit c53fc9a

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

docs/options/target.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ If your target includes features that require these helpers, you may need to ins
6161
npm install @oxc-project/runtime
6262
```
6363

64+
If you want to **inline helper functions** instead of importing them from the runtime package, you can install `@oxc-project/runtime` as a development dependency:
65+
66+
```bash
67+
npm install -D @oxc-project/runtime
68+
```
69+
6470
# CSS Targeting
6571

6672
`tsdown` can also downlevel CSS features to match your specified browser targets. For example, a CSS nesting `&` selector will be flattened if the target is `chrome108` or lower.

docs/zh-CN/options/target.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ tsdown --target chrome100 --target node20.18
6161
npm install @oxc-project/runtime
6262
```
6363

64+
如果您希望**内联辅助函数**,而不是从运行时包中导入它们,可以将 `@oxc-project/runtime` 作为开发依赖进行安装:
65+
66+
```bash
67+
npm install -D @oxc-project/runtime
68+
```
69+
6470
# CSS 目标
6571

6672
`tsdown` 也可以将 CSS 特性降级以匹配您指定的浏览器目标。例如,如果目标是 `chrome108` 或更低版本,CSS 嵌套的 `&` 选择器将被展开为平铺结构。

0 commit comments

Comments
 (0)