@rawstyle/vite 0.1.0 → 0.3.0
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.
- package/dist/index.js +1 -1
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{RESOLVED_PREFIX as e,
|
|
1
|
+
import{RESOLVED_PREFIX as e,TRANSFORMABLE_EXT as t,VIRTUAL_PREFIX as n}from"rawstyle";import{transform as r}from"rawstyle/transformer";const i=new Map;var a=()=>({name:`rawstyle-vite`,enforce:`pre`,resolveId(t){if(t.startsWith(n))return e+t.slice(n.length)},load(t){if(t.startsWith(e)){let n=t.slice(e.length);return i.get(n)}},transform(e,a){if(!t.test(a))return;let{transformed:o,css:s}=r(a,e),c=a+`.css`;return i.set(c,s),`import '${n}${c}';${o}`},async handleHotUpdate({file:n,server:a,modules:o,read:s}){if(!t.test(n))return;let{css:c}=r(n,await s()),l=n+`.css`,u=e+l,d=a.moduleGraph.getModuleById(u);if(i.set(l,c),d)return[...o,d]}});export{a as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rawstyle/vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "🪶 Ultra‑light Compile‑time CSS‑in‑JS",
|
|
5
5
|
"author": "kh4f <kh4f.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,15 +23,14 @@
|
|
|
23
23
|
"types": "dist/index.d.ts",
|
|
24
24
|
"type": "module",
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"rawstyle": ">=0",
|
|
26
|
+
"rawstyle": ">=0.4",
|
|
27
27
|
"rolldown-vite": "*"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsdown",
|
|
31
31
|
"build:watch": "tsdown --watch",
|
|
32
32
|
"build:prod": "tsdown --prod",
|
|
33
|
-
"
|
|
34
|
-
"release": "relion
|
|
35
|
-
"lint": "eslint"
|
|
33
|
+
"lint": "eslint",
|
|
34
|
+
"release": "relion"
|
|
36
35
|
}
|
|
37
36
|
}
|