-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(debugger): Always filewatch .map and .js from sourceMapRoot, but …
…optionally /reload minecraft. (#249) Enable file watch on `sourceMapRoot` even if /reload is not enabled. This ensures the source map cache is always cleared after build. There are users (editor) that prefer manual /reload in some cases and would need to have updated source maps. Summary: - if no source maps, only enable file watch if /reload is enabled (catches .js changes and reloads MC) - if `globPattern` override is set, enable file watch only if /reload is enabled (this feature was to watch a special pattern) - if `sourceMapRoot` is set, always enable file watch for .map and .js files but don't send /reload unless enabled. From the user's perspective nothing has changed. Source maps are simply cleared more aggressively.
- Loading branch information
1 parent
e63585a
commit 20f66f4
Showing
1 changed file
with
25 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters