If you are using TypeScript, there is also a declaration helper for better type inference. Add the following tovite-env.d.ts: /// <reference types="vite-plugin-svgr/client" /> Options svgr({// svgr options: https://react-svgr.com/docs/options/svgrOptions:{// ...},// esbuild...
If you are using TypeScript, there is also a declaration helper for better type inference. Add the following tovite-env.d.ts: /// <reference types="vite-plugin-svgr/client" /> Options svgr({// svgr options: https://react-svgr.com/docs/options/svgrOptions:{// ...},// esbuild...
If you are using TypeScript,vite-plugin-svgr/clientcan be added totsconfig.json: {// ..."compilerOptions": {// ..."types": ["vite-plugin-svgr/client"] } } License MIT Packages No packages published Languages TypeScript100.0%
import{ReactComponentasLogo}from'./logo.svg' If you are using TypeScript,vite-plugin-svgr/clientcan be added totsconfig.json: {// ..."compilerOptions": {// ..."types": ["vite-plugin-svgr/client"] } } License MIT Install npm i@litbase/vite-plugin-svgr ...
If you are using TypeScript, there is also a declaration helper for better type inference: @@ -47,11 +47,11 @@ svgr({ }, // A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should include. By default all svg files will be included. inc...
14.1", "typescript": "^5.4.5" }, "peerDependencies": {"vite": ">=2.6.0" @@ -44,5 +44,5 @@ "@svgr/core": "^8.1.0", "@svgr/plugin-jsx": "^8.1.0" }, "packageManager": "pnpm@8.15.1+sha256.245fe901f8e7fa8782d7f17d32b6a83995e2ae03984cb5b62b8949bfdc27c7b5"...
"moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ // "paths": {}, /* A series of entries which re-map imports to lookup...