Skip to content

Commit

Permalink
docs: translate side effect free as “无副作用的“
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheng-DX authored Jul 15, 2024
1 parent 5572d72 commit eb80014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/configuration-options/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@ class Impure {
/*@__PURE__ There may be additional text in the comment */ new Impure();
```

这样的标记被认为是 _有效的_,如果它直接在函数调用或构造函数调用之前,并且只被空格或注释与被调用者分隔。唯一的例外是括号,它包裹了一个调用或调用。
这样的标记被认为是 _无副作用的_,如果它直接在函数调用或构造函数调用之前,并且只被空格或注释与被调用者分隔。唯一的例外是括号,它包裹了一个调用或调用。

无效的注解将被删除,并且 Rollup 会发出警告。有效的注解将保留在代码中,除非它们的函数调用或构造函数调用也被删除。

Expand Down

0 comments on commit eb80014

Please sign in to comment.