Skip to content

Commit d813702

Browse files
committed
docs(en): merging all conflicts
2 parents 707680c + 1f2ed17 commit d813702

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

guide/api-javascript.md

+9
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,16 @@ interface ViteDevServer {
118118
*/
119119
ssrFixStacktrace(e: Error): void
120120
/**
121+
<<<<<<< HEAD
121122
* 启动服务器
123+
=======
124+
* Triggers HMR for a module in the module graph. You can use the `server.moduleGraph`
125+
* API to retrieve the module to be reloaded. If `hmr` is false, this is a no-op.
126+
*/
127+
reloadModule(module: ModuleNode): Promise<void>
128+
/**
129+
* Start the server.
130+
>>>>>>> 1f2ed17628ee97a603daa38075df1044a3d44354
122131
*/
123132
listen(port?: number, isRestart?: boolean): Promise<ViteDevServer>
124133
/**

guide/features.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ export type { T }
5757

5858
#### `useDefineForClassFields`
5959

60+
<<<<<<< HEAD
6061
从 Vite v2.5.0 开始,如果 TypeScript 的 target 是 `ESNext`,此选项默认值则为 `true`。这与 [`tsc` v4.3.2 及以后版本的行为](https://github.com/microsoft/TypeScript/pull/42663) 一致。这也是标准的 ECMAScript 的运行时行为。
62+
=======
63+
Starting from Vite 2.5.0, the default value will be `true` if the TypeScript target is `ES2022` or higher including `ESNext`. It is consistent with the [behavior of `tsc` 4.3.2 and later](https://github.com/microsoft/TypeScript/pull/42663). It is also the standard ECMAScript runtime behavior.
64+
>>>>>>> 1f2ed17628ee97a603daa38075df1044a3d44354
6165
6266
但对于那些习惯其他编程语言或旧版本 TypeScript 的开发者来说,这可能是违反直觉的。
6367
你可以参阅 [TypeScript 3.7 发布日志](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier) 中了解更多关于如何兼容的信息。
@@ -71,10 +75,13 @@ export type { T }
7175
#### 影响构建结果的其他编译器选项 {#other-compiler-options-affecting-the-build-result}
7276

7377
- [`extends`](https://www.typescriptlang.org/tsconfig#extends)
78+
- [`alwaysStrict`](https://www.typescriptlang.org/tsconfig#alwaysStrict)
7479
- [`importsNotUsedAsValues`](https://www.typescriptlang.org/tsconfig#importsNotUsedAsValues)
75-
- [`preserveValueImports`](https://www.typescriptlang.org/tsconfig#preserveValueImports)
80+
- [`jsx`](https://www.typescriptlang.org/tsconfig#jsx)
7681
- [`jsxFactory`](https://www.typescriptlang.org/tsconfig#jsxFactory)
7782
- [`jsxFragmentFactory`](https://www.typescriptlang.org/tsconfig#jsxFragmentFactory)
83+
- [`jsxImportSource`](https://www.typescriptlang.org/tsconfig#jsxImportSource)
84+
- [`preserveValueImports`](https://www.typescriptlang.org/tsconfig#preserveValueImports)
7885

7986
如果你的代码库很难迁移到 `"isolatedModules": true`,或许你可以尝试通过第三方插件来解决,比如 [rollup-plugin-friendly-type-imports](https://www.npmjs.com/package/rollup-plugin-friendly-type-imports)。但是,这种方式不被 Vite 官方支持。
8087

0 commit comments

Comments
 (0)