CSS glob import breaking on new file

🐛 bug report

Parcel throws an error when adding a new file whilst using glob imports in css files

🎛 Configuration (.babelrc, package.json, cli command)

Out of the box

🤔 Expected Behavior

Reloads watcher when new file is added in the globbed css import

😯 Current Behavior

Parcel throws an error saying file not found

Error: ENOENT: no such file or directory

💻 Code Sample

Folder Structure:
styles/one.css
styles/two.css
styles.three.css
main.css

Import declaration in main.css:
@import './styles/*.css';

🌍 Your Environment

Software Version(s)
Parcel 1.12.3
Node 12.0.0
npm/Yarn 6.9.0/1.15.2
Operating System osx 10.14.4

2 thoughts on “CSS glob import breaking on new file

  1. I just proposed a fix. I’m not sure what further steps are required re: testing, and I don’t have a lot of time/energy for that, but I found the bug.