We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vite-plugin-svg-sprite/typings/vanilla
The exports field is not correctly setup to allow what's described in the readme:
exports
https://github.com/meowtec/vite-plugin-svg-sprite?tab=readme-ov-file#typescript-users
To get proper type hints in TypeScript, include the appropriate type definitions in your tsconfig.json: "types": [ // or "vite-plugin-svg-sprite/typings/react" | "vite-plugin-svg-sprite/typings/vue" "vite-plugin-svg-sprite/typings/vanilla" ],
To get proper type hints in TypeScript, include the appropriate type definitions in your tsconfig.json:
tsconfig.json
"types": [ // or "vite-plugin-svg-sprite/typings/react" | "vite-plugin-svg-sprite/typings/vue" "vite-plugin-svg-sprite/typings/vanilla" ],
This is the patch I'm using:
diff --git a/package.json b/package.json index c4906a395d073814d1180100672a98d7454b7b90..b4a5d85f36f12dac6efd8c7ffa0f6df00536aff6 100644 --- a/package.json +++ b/package.json @@ -15,8 +15,8 @@ } }, "./runtime/*.js": "./esm/runtime/*.js", - "./react": { - "types": "./react.d.ts" + "./typings/*": { + "types": "./typings/*.d.ts" } }, "main": "cjs/index.js",
The text was updated successfully, but these errors were encountered:
You are right. Could you submit a PR?
Sorry, something went wrong.
No branches or pull requests
The
exports
field is not correctly setup to allow what's described in the readme:https://github.com/meowtec/vite-plugin-svg-sprite?tab=readme-ov-file#typescript-users
This is the patch I'm using:
The text was updated successfully, but these errors were encountered: