Skip to content

Commit fe3b343

Browse files
committed
Add affectsModuleResolution: true ot jsx and jsxImportSource options
1 parent 6714998 commit fe3b343

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/compiler/commandLineParser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ namespace ts {
382382
type: jsxOptionMap,
383383
affectsSourceFile: true,
384384
affectsEmit: true,
385+
affectsModuleResolution: true,
385386
paramType: Diagnostics.KIND,
386387
showInSimplifiedHelpView: true,
387388
category: Diagnostics.Basic_Options,
@@ -802,6 +803,7 @@ namespace ts {
802803
{
803804
name: "jsxImportSource",
804805
type: "string",
806+
affectsModuleResolution: true,
805807
category: Diagnostics.Advanced_Options,
806808
description: Diagnostics.Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react
807809
},

tests/baselines/reference/tscWatch/programUpdates/updates-emit-on-jsx-option-change.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Output::
8080

8181
Program root files: ["/user/username/projects/myproject/index.tsx"]
8282
Program options: {"jsx":2,"watch":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
83-
Program structureReused: Completely
83+
Program structureReused: Not
8484
Program files::
8585
/a/lib/lib.d.ts
8686
/user/username/projects/myproject/index.tsx
@@ -98,10 +98,10 @@ WatchedFiles::
9898
FsWatches::
9999

100100
FsWatchesRecursive::
101-
/user/username/projects/myproject/node_modules/@types:
102-
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
103101
/user/username/projects/myproject:
104102
{"directoryName":"/user/username/projects/myproject","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
103+
/user/username/projects/myproject/node_modules/@types:
104+
{"directoryName":"/user/username/projects/myproject/node_modules/@types","fallbackPollingInterval":500,"fallbackOptions":{"watchFile":"PriorityPollingInterval"}}
105105

106106
exitCode:: ExitStatus.undefined
107107

0 commit comments

Comments
 (0)