Open hitochan777 opened 4 years ago
I figured out the problem myself.
micro-dev relies on chokidar for file watcher, and chokidar relies on anymatch for pattern matching.
According to the documentation of anymatch, something like .idea
to absolute path does not match. Instead we have to pass **/.idea/**
if we want to ignore without using RegExp.
anymatch('node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // false
anymatch('**/node_modules/**', '/absolute/path/to/node_modules/somelib/index.js'); // true
According to the help shown by
-h
,--ignore
option should accept glob. However when I run with--ignore *.sqlite3
, it throws an error saying:Should we properly handle glob instead of relying on RegExp?