@rokkit/core 1.0.0-next.111 → 1.0.0-next.112

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.
Files changed (2) hide show
  1. package/package.json +3 -2
  2. package/src/utils.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/core",
3
- "version": "1.0.0-next.111",
3
+ "version": "1.0.0-next.112",
4
4
  "description": "Contains core utility functions and classes that can be used in various components.",
5
5
  "author": "Jerry Thomas <me@jerrythomas.name>",
6
6
  "license": "MIT",
@@ -24,7 +24,8 @@
24
24
  "./package.json": "./package.json",
25
25
  ".": {
26
26
  "types": "./dist/index.d.ts",
27
- "import": "./src/index.js"
27
+ "import": "./src/index.js",
28
+ "svelte": "./src/index.js"
28
29
  }
29
30
  },
30
31
  "dependencies": {
package/src/utils.js CHANGED
@@ -128,7 +128,8 @@ export const importIcons = (icons) => {
128
128
  if (!icons) return {}
129
129
 
130
130
  return Object.entries(icons).reduce((acc, [key, value]) => {
131
- acc[key] = () => import(value, { with: { type: 'json' } }).then((i) => i.default)
131
+ acc[key] = () =>
132
+ import(/* @vite-ignore */ value, { with: { type: 'json' } }).then((i) => i.default)
132
133
  return acc
133
134
  }, {})
134
135
  }