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:
Robin Malfait 2026-06-24 18:14:13 +02:00
parent d5ca0aeac9
commit bb6a10937c
No known key found for this signature in database

View file

@ -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)