Skip to content

Commit 1883e40

Browse files
sandersneps1lon
authored andcommitted
Fix vite-plugin-react-svg for dependencies
vite-plugin-react-svg's dependencies require 1. 'lib' to include 'dom' 2. The minimum typescript version to be 4.0.
1 parent b6f2604 commit 1883e40

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

types/vite-plugin-react-svg/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Project: https://github.com/visualfanatic/vite-svg
33
// Definitions by: Priyanshu Rav <https://github.com/priyanshurav>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5-
// Minimum TypeScript Version: 3.8
5+
// Minimum TypeScript Version: 4.0
66

77
import { Plugin } from 'vite';
88
import { OptimizeOptions } from 'svgo';

types/vite-plugin-react-svg/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"lib": [
5-
"es6"
5+
"es6", "dom"
66
],
77
"noImplicitAny": true,
88
"noImplicitThis": true,

0 commit comments

Comments
 (0)