@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.
@@ -0,0 +1,6 @@
1
+ import { Plugin } from "rolldown-vite";
2
+
3
+ //#region src/index.d.ts
4
+ declare const _default: () => Plugin;
5
+ //#endregion
6
+ export { _default as default };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- console.log('123')
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.0.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/kh4f/rawstyle",
8
- "bugs": "https://github.com/kh4f/rawstyle/issues",
9
- "homepage": "https://github.com/kh4f/rawstyle#readme",
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
- "css-in-js"
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
- "type": "module"
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