Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ignore fs-specific tmp files in watch mode #729

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/builder/bundless/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import {
DEFAULT_BUNDLESS_IGNORES,
WATCH_DEBOUNCE_STEP,
} from '../../constants';
import { logger } from '../../utils';
import type { BundlessConfigProvider } from '../config';
import getDeclarations from './dts';
import runLoaders from './loaders';
import { logger } from '../../utils';

const debugLog = debug(DEBUG_BUNDLESS_NAME);

Expand Down Expand Up @@ -203,6 +203,12 @@ async function bundless(
cwd: opts.cwd,
ignoreInitial: true,
ignored: DEFAULT_BUNDLESS_IGNORES,
// to avoid catch temp file from some special file-system
// ex. a.txt => a.txt.12344345 in CloudIDE
awaitWriteFinish: {
stabilityThreshold: 20,
pollInterval: 10,
},
})
.on('add', handleTransform)
.on('change', handleTransform)
Expand Down