Skip to content

Commit ca89c3e

Browse files
authored
docs(cn): improve guides/typescript translation
docs(cn): improve guides/typescript translation
2 parents 387e855 + 63c81d9 commit ca89c3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/guides/typescript.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ module.exports = {
117117
document.body.appendChild(component());
118118
```
119119

120-
T> 如果想在 TypeScript 中保留如`import _ from 'lodash';`的语法被让它作为一种默认的导入方式,需要在文件 **tsconfig.json** 中设置 `"allowSyntheticDefaultImports" : true``"esModuleInterop" : true` 。这个是与 TypeScript 相关的配置,在本文档中提及仅供参考。
120+
T> 如果想在 TypeScript 中保留如 `import _ from 'lodash';` 的语法让它被作为一种默认的导入方式,需要在文件 **tsconfig.json** 中设置 `"allowSyntheticDefaultImports" : true``"esModuleInterop" : true`。这是与 TypeScript 相关的配置,在本文档中提及仅供参考。
121121

122122
## Loader $#loader$
123123

0 commit comments

Comments
 (0)