@rawstyle/vite 0.0.0 → 0.1.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.d.ts +6 -0
- package/dist/index.js +1 -1
- package/package.json +27 -6
- package/README.md +0 -1
package/dist/index.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{RESOLVED_PREFIX as e,VIRTUAL_PREFIX as t,transform as n}from"rawstyle";const r=new Map;var i=()=>({name:`rawstyle-vite`,enforce:`pre`,resolveId(n){if(n.startsWith(t))return e+n.slice(t.length)},load(t){if(t.startsWith(e)){let n=t.slice(e.length);return r.get(n)}},transform(e,i){if(!i.endsWith(`.tsx`))return;let{transformedCode:a,extractedCss:o}=n(i,e),s=i+`.css`;return r.set(s,o),`import "${t}${s}";${a}`},async handleHotUpdate({file:t,server:i,modules:a,read:o}){if(!t.endsWith(`.tsx`))return;let{extractedCss:s}=n(t,await o()),c=t+`.css`,l=e+c,u=i.moduleGraph.getModuleById(l);if(r.set(c,s),u)return[...a,u]}});export{i as default};
|
package/package.json
CHANGED
|
@@ -1,16 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rawstyle/vite",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "🪶 Ultra‑light Compile‑time CSS‑in‑JS",
|
|
5
5
|
"author": "kh4f <kh4f.dev@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"repository": "https://github.com/
|
|
8
|
-
"bugs": "https://github.com/
|
|
9
|
-
"homepage": "https://github.com/
|
|
7
|
+
"repository": "https://github.com/rawstylecss/rawstyle",
|
|
8
|
+
"bugs": "https://github.com/rawstylecss/rawstyle/issues",
|
|
9
|
+
"homepage": "https://github.com/rawstylecss/rawstyle#readme",
|
|
10
10
|
"keywords": [
|
|
11
11
|
"rawstyle",
|
|
12
|
-
"
|
|
12
|
+
"rawstyle-vite",
|
|
13
|
+
"css-in-js",
|
|
14
|
+
"vite-plugin"
|
|
15
|
+
],
|
|
16
|
+
"relion": {
|
|
17
|
+
"tagPrefix": "@rawstyle/vite@"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist"
|
|
13
21
|
],
|
|
14
22
|
"main": "dist/index.js",
|
|
15
|
-
"
|
|
23
|
+
"types": "dist/index.d.ts",
|
|
24
|
+
"type": "module",
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"rawstyle": ">=0",
|
|
27
|
+
"rolldown-vite": "*"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsdown",
|
|
31
|
+
"build:watch": "tsdown --watch",
|
|
32
|
+
"build:prod": "tsdown --prod",
|
|
33
|
+
"release:context": "relion -f",
|
|
34
|
+
"release": "relion -bct",
|
|
35
|
+
"lint": "eslint"
|
|
36
|
+
}
|
|
16
37
|
}
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# Rawstyle
|