phosphor-icons-tailwindcss
Advanced tools
Comparing version
{ | ||
"name": "phosphor-icons-tailwindcss", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Tailwind plugin for Phoshor icon set in pure CSS", | ||
@@ -10,3 +10,4 @@ "type": "module", | ||
"types": "./src/plugin.d.ts", | ||
"import": "./src/plugin.js" | ||
"import": "./src/plugin.js", | ||
"default": "./src/plugin.js" | ||
} | ||
@@ -44,3 +45,4 @@ }, | ||
"dependencies": { | ||
"@phosphor-icons/core": "^2.1.1" | ||
"@phosphor-icons/core": "^2.1.1", | ||
"import-meta-resolve": "^4.1.0" | ||
}, | ||
@@ -47,0 +49,0 @@ "peerDependencies": { |
import { readFileSync, existsSync } from 'fs'; | ||
import { icons } from '@phosphor-icons/core'; | ||
import { resolve } from 'import-meta-resolve'; | ||
import createPlugin from 'tailwindcss/plugin.js'; | ||
@@ -54,4 +55,5 @@ | ||
const fileUrl = new URL( | ||
import.meta.resolve( | ||
resolve( | ||
`@phosphor-icons/core/assets/${weight}/${name}${weight === 'regular' ? '' : `-${weight}`}.svg`, | ||
import.meta.url, | ||
), | ||
@@ -58,0 +60,0 @@ ); |
11434
1.18%105
1.94%3
50%+ Added
+ Added