Skip to content

Commit 932419c

Browse files
author
Max Heiber
committed
Update docs for --isolatedModules flag
Make it clear that --isolatedModules does *not* do separate compilation, but instead ensures that separate compilation would be safe. Include links to ts.transpileModule and babel plugin-transform-typescript
1 parent f33219a commit 932419c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pages/Compiler Options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Option | Type | Default
3232
`--inlineSourceMap` | `boolean` | `false` | Emit a single file with source maps instead of having a separate file.
3333
`--inlineSources` | `boolean` | `false` | Emit the source alongside the sourcemaps within a single file; requires `--inlineSourceMap` or `--sourceMap` to be set.
3434
`--init` | | | Initializes a TypeScript project and creates a `tsconfig.json` file.
35-
`--isolatedModules` | `boolean` | `false` | Transpile each file as a separate module (similar to "ts.transpileModule").
35+
`--isolatedModules` | `boolean` | `false` | Perform additional checks to ensure that separate compilation (such as with [`transpileModule`](https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function) or [@babel/plugin-transform-typescript](https://babeljs.io/docs/en/babel-plugin-transform-typescript)) would be safe.
3636
`--jsx` | `string` | `"preserve"` | Support JSX in `.tsx` files: `"react"`, `"preserve"`, `"react-native"`. See [JSX](./JSX.md).
3737
`--jsxFactory` | `string` | `"React.createElement"` | Specify the JSX factory function to use when targeting react JSX emit, e.g. `React.createElement` or `h`.
3838
`--keyofStringsOnly` | `boolean` | `false` | Resolve `keyof` to string valued property names only (no numbers or symbols).

0 commit comments

Comments
 (0)