Skip to content

Commit 8031fa9

Browse files
committed
Use enum value
1 parent 87edf5e commit 8031fa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

heft-plugins/heft-isolated-typescript-transpile-plugin/src/SwcIsolatedTranspilePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ async function transpileProjectAsync(
171171
// If the tsconfig has wildcard directories, we need to ensure that they are watched for file changes.
172172
const directoryQueue: Map<string, boolean> = new Map();
173173
for (const [wildcardDirectory, type] of Object.entries(parsedTsConfig.wildcardDirectories)) {
174-
directoryQueue.set(path.normalize(wildcardDirectory), type !== 0);
174+
directoryQueue.set(path.normalize(wildcardDirectory), type === ts.WatchDirectoryFlags.Recursive);
175175
}
176176

177177
if (directoryQueue.size > 0) {

0 commit comments

Comments
 (0)