You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`import type`is always guaranteed to be removed from your JavaScript, and tools like Babel can make better assumptions about your code via the [`isolatedModules`](/tsconfig#isolatedModules) compiler flag.
149
+
Any explicitly marked `type`import is guaranteed to be removed from your JavaScript, and tools like Babel can make better assumptions about your code via the [`isolatedModules`](/tsconfig#isolatedModules) compiler flag.
147
150
You can read more in the [3.8 release notes](https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-beta/#type-only-imports-exports).
Copy file name to clipboardExpand all lines: packages/tsconfig-reference/copy/en/options/moduleResolution.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ oneline: "Specify how TypeScript looks up a file from a given module specifier."
6
6
Specify the module resolution strategy:
7
7
8
8
-`'node'` for Node.js' CommonJS implementation
9
-
-`'node12'` or `'nodenext'` for Node.js' ECMAScript Module Support [from TypeScript 4.5 onwards](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/)
9
+
-`'node16'` or `'nodenext'` for Node.js' ECMAScript Module Support [from TypeScript 4.7 onwards](https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs)
10
10
-`'classic'` used in TypeScript before the release of 1.6. You probably won't need to use `classic` in modern code
11
11
12
12
There is a handbook reference page on [Module Resolution](/docs/handbook/module-resolution.html)
0 commit comments