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:
parent
d5ca0aeac9
commit
bb6a10937c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue