Fix format assumption when resolving module dependencies
https://github.com/tailwindlabs/tailwindcss/pull/10878master
parent
ae18cb2449
commit
7978a2eb28
|
@ -69,7 +69,7 @@ function* _getModuleDependencies(
|
||||||
for (let match of [
|
for (let match of [
|
||||||
...contents.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),
|
...contents.matchAll(/import[\s\S]*?['"](.{3,}?)['"]/gi),
|
||||||
...contents.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),
|
...contents.matchAll(/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi),
|
||||||
...contents.matchAll(/require\(['"`](.{3,})['"`]\)/gi),
|
...contents.matchAll(/require\(['"`](.+)['"`]\)/gi),
|
||||||
]) {
|
]) {
|
||||||
// Bail out if it's not a relative file
|
// Bail out if it's not a relative file
|
||||||
if (!match[1].startsWith('.')) continue
|
if (!match[1].startsWith('.')) continue
|
||||||
|
|
Loading…
Reference in New Issue