File tree 3 files changed +7
-3
lines changed
unplugin-tailwindcss-mangle
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @tailwindcss-mangle/core" ,
3
- "version" : " 2.0.5 " ,
3
+ "version" : " 2.0.6 " ,
4
4
"description" : " The core of tailwindcss-mangle" ,
5
5
"exports" : {
6
6
"." : {
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ export function handleValue(options: { raw: string; node: babel.types.StringLite
26
26
}
27
27
}
28
28
if ( typeof node . start === 'number' && typeof node . end === 'number' && value ) {
29
- magicString . update ( node . start + offset , node . end - offset , escape ? jsStringEscape ( value ) : value )
29
+ const start = node . start + offset
30
+ const end = node . end - offset
31
+ if ( start < end ) {
32
+ magicString . update ( start , end , escape ? jsStringEscape ( value ) : value )
33
+ }
30
34
}
31
35
}
32
36
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " unplugin-tailwindcss-mangle" ,
3
- "version" : " 2.0.4 " ,
3
+ "version" : " 2.0.6 " ,
4
4
"description" : " mangle tailwindcss utilities class plugin. support vite and webpack!" ,
5
5
"main" : " ./dist/index.cjs" ,
6
6
"module" : " ./dist/index.mjs" ,
You can’t perform that action at this time.
0 commit comments