@@ -5894,21 +5894,14 @@ declare namespace ts {
5894
5894
hasNoDefaultLib: boolean;
5895
5895
languageVersion: ScriptTarget;
5896
5896
/**
5897
- * When `module` is `Node16` or `NodeNext`, this field controls whether the
5898
- * source file in question is an ESNext-output-format file, or a CommonJS-output-format
5899
- * module. This is derived by the module resolver as it looks up the file, since
5900
- * it is derived from either the file extension of the module, or the containing
5901
- * `package.json` context, and affects both checking and emit .
5897
+ * This field controls whether the source file in question is an ESNext-output-format file,
5898
+ * or a CommonJS-output-format module. This is derived by the module resolver as it looks
5899
+ * up the file, since it is derived from either the file extension of the module, or the
5900
+ * containing `package.json` context, and may affect both checking and emit, depending on
5901
+ * `module` and `moduleResolution` compiler options .
5902
5902
*
5903
5903
* It is _public_ so that (pre)transformers can set this field,
5904
- * since it switches the builtin `node` module transform. Generally speaking, if unset,
5905
- * the field is treated as though it is `ModuleKind.CommonJS`.
5906
- *
5907
- * Note that this field is only set by the module resolution process when
5908
- * `moduleResolution` is `Node16` or `NodeNext`, which is implied by the `module` setting
5909
- * of `Node16` or `NodeNext`, respectively, but may be overriden (eg, by a `moduleResolution`
5910
- * of `node`). If so, this field will be unset and source files will be considered to be
5911
- * CommonJS-output-format by the node module transformer and type checker, regardless of extension or context.
5904
+ * since it switches the builtin `node` module transform.
5912
5905
*/
5913
5906
impliedNodeFormat?: ResolutionMode;
5914
5907
}
0 commit comments