File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' phosphor-icons-tailwindcss ' : patch
3+ ---
4+
5+ switch to ` path/posix ` implementation to support Windows
Original file line number Diff line number Diff line change 11import { readFileSync , existsSync } from 'fs' ;
2+ import { join } from 'path/posix' ;
23
34import { icons } from '@phosphor-icons/core' ;
45import { resolve } from 'import-meta-resolve' ;
@@ -53,7 +54,11 @@ export default createPlugin.withOptions(
5354 if ( ICON_SET . has ( name ) && VARIANTS . includes ( weight ) ) {
5455 const fileUrl = new URL (
5556 resolve (
56- `@phosphor-icons/core/assets/${ weight } /${ name } ${ weight === 'regular' ? '' : `-${ weight } ` } .svg` ,
57+ join (
58+ '@phosphor-icons/core/assets' ,
59+ weight ,
60+ `${ name } ${ weight === 'regular' ? '' : `-${ weight } ` } .svg` ,
61+ ) ,
5762 import . meta. url ,
5863 ) ,
5964 ) ;
Original file line number Diff line number Diff line change 1- import path from 'path' ;
1+ import path from 'path/posix ' ;
22
33import { compile } from '@tailwindcss/node' ;
44import postcss from 'postcss' ;
You can’t perform that action at this time.
0 commit comments