Commit b8d2954
authored
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.1 parent f8e9fb4 commit b8d2954
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments