Skip to content

fix(tasks): adjust styles watcher implementation#141

Open
Hugoer wants to merge 1 commit intoNetcentric:mainfrom
Hugoer:Update-chokidar-usage-to-support-v4
Open

fix(tasks): adjust styles watcher implementation#141
Hugoer wants to merge 1 commit intoNetcentric:mainfrom
Hugoer:Update-chokidar-usage-to-support-v4

Conversation

@Hugoer
Copy link
Member

@Hugoer Hugoer commented Mar 11, 2026

This PR fixes an issue with SCSS file watchers caused by Chokidar version > 3. In versions 4+, Chokidar no longer supports glob patterns directly.

Description

Downgraded chokidar from v5 to v4 to maintain NC FE Build compatibility (node version).

Use fast-glob to have the observer pre-filter the SCSS files and listen only to the specific list of files., instead of monitoring the entire ${config.general.sourcesPath} folder. This ensures reliable detection of SCSS changes and improves watcher performance.

Related Issue

Fixes #138

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • I have read the CONTRIBUTING document.
  • All new and existing tests passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update chokidar usage to support v4 (glob patterns removal)

2 participants