vite-plugin-svg-sprite 0.6.0 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,8 +11,10 @@ function createAddSymbol() {
11
11
  root.style.position = 'absolute';
12
12
  root.style.width = '0';
13
13
  root.style.height = '0';
14
- root.style.visibility = 'hidden';
14
+ root.style.overflow = 'hidden';
15
15
  root.ariaHidden = 'true';
16
+ // DO NOT SET THIS
17
+ // root.style.visibility = 'hidden';
16
18
  function insertRoot() {
17
19
  document.body.insertBefore(root, document.body.firstChild);
18
20
  }
@@ -9,8 +9,10 @@ function createAddSymbol() {
9
9
  root.style.position = 'absolute';
10
10
  root.style.width = '0';
11
11
  root.style.height = '0';
12
- root.style.visibility = 'hidden';
12
+ root.style.overflow = 'hidden';
13
13
  root.ariaHidden = 'true';
14
+ // DO NOT SET THIS
15
+ // root.style.visibility = 'hidden';
14
16
  function insertRoot() {
15
17
  document.body.insertBefore(root, document.body.firstChild);
16
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite-plugin-svg-sprite",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "SVG sprite plugin for Vite",
5
5
  "type": "module",
6
6
  "exports": {
@@ -15,8 +15,8 @@
15
15
  }
16
16
  },
17
17
  "./runtime/*.js": "./esm/runtime/*.js",
18
- "./react": {
19
- "types": "./react.d.ts"
18
+ "./typings/*": {
19
+ "types": "./typings/*.d.ts"
20
20
  }
21
21
  },
22
22
  "main": "cjs/index.js",
File without changes