Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When testing import paths, only use string literals. (#389)
Prior to this change, code with template literals inside of `require` calls would break. This is because the check of `t.isLiteral` is far too broad for this usage, and assumes that all literals have a `value` property. Since `TemplateLiteral` nodes do not, they would cause `picomatch` to fail on an `undefined` input.
- Loading branch information