Skip to content

Commit 09446c6

Browse files
committed
Update info in --module compiler option. PR530
1 parent bf2789f commit 09446c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/handbook/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
`--locale` | `string` | *(platform specific)* | 显示错误信息时使用的语言,比如:en-us。
3232
`--mapRoot` | `string` | | 为调试器指定指定sourcemap文件的路径,而不是使用生成时的路径。当`.map`文件是在运行时指定的,并不同于`js`文件的地址时使用这个标记。指定的路径会嵌入到`sourceMap`里告诉调试器到哪里去找它们。
3333
`--maxNodeModuleJsDepth` | `number` | `0` | node_modules依赖的最大搜索深度并加载JavaScript文件。仅适用于`--allowJs`
34-
`--module`<br/>`-m` | `string` | `target === "ES6" ? "ES6" : "commonjs"` | 指定生成哪个模块系统代码:`"None"``"CommonJS"``"AMD"``"System"``"UMD"``"ES6"``"ES2015"`。<br/>► 只有`"AMD"``"System"`能和`--outFile`一起使用。<br/>► 当目标是`"ES5"`或以下的时候不能使用`"ES6"``"ES2015"`
34+
`--module`<br/>`-m` | `string` | `target === "ES6" ? "ES6" : "commonjs"` | 指定生成哪个模块系统代码:`"None"``"CommonJS"``"AMD"``"System"``"UMD"``"ES6"``"ES2015"`。<br/>► 只有`"AMD"``"System"`能和`--outFile`一起使用。<br/>►`"ES6"``"ES2015"`可使用在目标输出为`"ES5"`或更低的情况下
3535
`--moduleResolution` | `string` | `module === "AMD" | "System" | "ES6" ? "Classic" : "Node"` | 决定如何处理模块。或者是`"Node"`对于Node.js/io.js,或者是`"Classic"`(默认)。查看[模块解析](./Module Resolution.md)了解详情。
3636
`--newLine` | `string` | *(platform specific)* | 当生成文件时指定行结束符:`"crlf"`(windows)或`"lf"`(unix)。
3737
`--noEmit` | `boolean` | `false` | 不生成输出文件。

0 commit comments

Comments
 (0)