You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a glob import/require is used hmr/watch does not redo the glob, causing it to not automatically add new files if you added a file that matches the same glob pattern.
For example:
importfilesfrom'./files/*.js';
File structure
index.js
files
- file.js
- otherfile.js
If you add a file for example anotherfile.js to the files folder, it will not cause a reload or update and will not include the file.
🐛 bug report
If a glob import/require is used hmr/watch does not redo the glob, causing it to not automatically add new files if you added a file that matches the same glob pattern.
For example:
File structure
If you add a file for example
anotherfile.js
to the files folder, it will not cause a reload or update and will not include the file.🎛 Configuration (.babelrc, package.json, cli command)
No config
🤔 Expected Behavior
Should reload and include the newly added file that matches the glob
😯 Current Behavior
You have to restart parcel to re-run the glob
💁 Possible Solution
Support globs in watch mode
🔦 Context
Using glob imports
🌍 Your Environment
The text was updated successfully, but these errors were encountered: