mirror of
https://github.com/aphrody-labs/tailwindcss.git
synced 2026-10-17 12:45:52 +00:00
use .ts instead of .css
In newer Vite versions this extension matters, without the vite/resolvers integration tests won't work. Since this is still a placeholder fake file where Vite will run `dirname` on, the actual file doesn't really matter as long as it's relative to this file.
This commit is contained in:
1 file changed
+1
-1
@@ -45,7 +45,7 @@ function createCustomResolver(
|
||||
// It does matter that this is a file, otherwise we would go up a directory,
|
||||
// which means that we would be resolving files from a parent folder first,
|
||||
// instead of the current folder we are in.
|
||||
let importer = path.resolve(base, '__placeholder__.css')
|
||||
let importer = path.resolve(base, '__placeholder__.ts')
|
||||
|
||||
for (let resolver of resolvers) {
|
||||
let resolved = await resolver(id, importer)
|
||||
|
||||
Reference in new issue
Block a user