Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit cc494a3

Browse files
author
Stanislav Panferov
committed
fix(*): watch tsx files too
1 parent 6324032 commit cc494a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ function ensureInstance(webpack: WebPack, options: CompilerOptions, instanceName
205205
});
206206

207207
Promise.all(changedFiles.map((changedFile) => {
208-
if (/\.ts$|\.d\.ts$/.test(changedFile)) {
208+
if (/\.ts$|\.d\.ts|\.tsx$/.test(changedFile)) {
209209
return state.readFileAndUpdate(changedFile).then(() => {
210210
return state.fileAnalyzer.checkDependencies(resolver, changedFile);
211211
});

0 commit comments

Comments
 (0)