mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 11:50:42 +08:00
explorer: Add file extension to vite plugin import
Vite 8.3 warns about extensionless imports in the config, since its native config loader, planned as the default, can't resolve them.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
"exclude": ["node_modules/*", "radicle-httpd/*"],
|
||||
"compilerOptions": {
|
||||
"noEmit": true,
|
||||
"allowImportingTsExtensions": true,
|
||||
"target": "es2023",
|
||||
"module": "es2022",
|
||||
"types": ["vite/client"],
|
||||
|
||||
@@ -3,7 +3,7 @@ import path from "node:path";
|
||||
import { defineConfig } from "vitest/config";
|
||||
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
||||
|
||||
import { assets } from "./vite-plugin-assets";
|
||||
import { assets } from "./vite-plugin-assets.ts";
|
||||
|
||||
export default defineConfig({
|
||||
define: {
|
||||
|
||||
Reference in New Issue
Block a user