Skip to content

Commit d50bcd8

Browse files
committed
fix(output) get output when there is jsx:preserve
closes #612 refs #609 (comment)
1 parent 56b6f0a commit d50bcd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/main/lang/projectService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ function getOutputJs(query) {
587587
projectCache_1.consistentPath(query);
588588
var project = projectCache_1.getOrCreateProject(query.filePath);
589589
var output = building_1.getRawOutput(project, query.filePath);
590-
var jsFile = output.outputFiles.filter(function (x) { return path.extname(x.name) == ".js"; })[0];
590+
var jsFile = output.outputFiles.filter(function (x) { return path.extname(x.name) == ".js" || path.extname(x.name) == ".jsx"; })[0];
591591
if (!jsFile || output.emitSkipped) {
592592
return resolve({});
593593
}

lib/main/lang/projectService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ export function getOutputJs(query: FilePathQuery): Promise<GetOutputJsResponse>
923923

924924
var project = getOrCreateProject(query.filePath);
925925
var output = getRawOutput(project, query.filePath);
926-
var jsFile = output.outputFiles.filter(x=> path.extname(x.name) == ".js")[0];
926+
var jsFile = output.outputFiles.filter(x=> path.extname(x.name) == ".js" || path.extname(x.name) == ".jsx")[0];
927927

928928
if (!jsFile || output.emitSkipped) {
929929
return resolve({});

0 commit comments

Comments
 (0)