@unframework.dev/unplugin 0.0.0-stage → 0.1.1

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,2 @@
1
+ import { rolldown } from "./plugin.js";
2
+ export { rolldown as default };
@@ -0,0 +1,2 @@
1
+ import { rolldown } from "./plugin.js";
2
+ export { rolldown as default };
@@ -0,0 +1,2 @@
1
+ import { rollup } from "./plugin.js";
2
+ export { rollup as default };
package/dist/rollup.js ADDED
@@ -0,0 +1,2 @@
1
+ import { rollup } from "./plugin.js";
2
+ export { rollup as default };
@@ -0,0 +1,2 @@
1
+ import { rsbuild } from "./plugin.js";
2
+ export { rsbuild as default };
@@ -0,0 +1,2 @@
1
+ import { rsbuild } from "./plugin.js";
2
+ export { rsbuild as default };
@@ -0,0 +1,2 @@
1
+ import { rspack } from "./plugin.js";
2
+ export { rspack as default };
package/dist/rspack.js ADDED
@@ -0,0 +1,2 @@
1
+ import { rspack } from "./plugin.js";
2
+ export { rspack as default };
@@ -0,0 +1,2 @@
1
+ import { unloader } from "./plugin.js";
2
+ export { unloader as default };
@@ -0,0 +1,2 @@
1
+ import { unloader } from "./plugin.js";
2
+ export { unloader as default };
package/dist/vite.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { CompileEvent, UnframeworkApi, UnframeworkOptions } from "./plugin.js";
2
+ import { Plugin } from "vite";
3
+ //#region src/vite.d.ts
4
+ /**
5
+ * The unframework Vite plugin: imports of `.uf.tsx` files load as the target's source, under ids
6
+ * that the framework's own plugin claims. Returns `[pre, post]`: `pre` resolves and compiles;
7
+ * `post` turns a module that `onCompile` failed into `throw new Error(message)`. Place it before
8
+ * the framework's plugins. With no `target`, the framework's plugin decides it (ADR-0075).
9
+ */
10
+ export default function unframework(options?: UnframeworkOptions): Plugin[];
11
+ //#endregion
12
+ export type { CompileEvent, UnframeworkApi, UnframeworkOptions };
package/dist/vite.js ADDED
@@ -0,0 +1,13 @@
1
+ import { unframeworkUnplugin } from "./plugin.js";
2
+ //#region src/vite.ts
3
+ /**
4
+ * The unframework Vite plugin: imports of `.uf.tsx` files load as the target's source, under ids
5
+ * that the framework's own plugin claims. Returns `[pre, post]`: `pre` resolves and compiles;
6
+ * `post` turns a module that `onCompile` failed into `throw new Error(message)`. Place it before
7
+ * the framework's plugins. With no `target`, the framework's plugin decides it (ADR-0075).
8
+ */
9
+ function unframework(options) {
10
+ return unframeworkUnplugin.vite(options);
11
+ }
12
+ //#endregion
13
+ export { unframework as default };
@@ -0,0 +1,2 @@
1
+ import { webpack } from "./plugin.js";
2
+ export { webpack as default };
@@ -0,0 +1,2 @@
1
+ import { webpack } from "./plugin.js";
2
+ export { webpack as default };
package/package.json CHANGED
@@ -1,6 +1,127 @@
1
1
  {
2
2
  "name": "@unframework.dev/unplugin",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "description": "The Unframework bundler plugin: imports of .uf.tsx files compile to the selected framework, and that framework's own plugin finishes the job.",
5
+ "keywords": [
6
+ "astro",
7
+ "rolldown",
8
+ "rollup",
9
+ "unframework",
10
+ "unplugin",
11
+ "vite",
12
+ "webpack"
13
+ ],
14
+ "homepage": "https://github.com/uxfront-com/unframework/tree/main/packages/unplugin#readme",
15
+ "bugs": "https://github.com/uxfront-com/unframework/issues",
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/uxfront-com/unframework.git",
20
+ "directory": "packages/unplugin"
21
+ },
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "type": "module",
26
+ "sideEffects": false,
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "./astro": {
33
+ "types": "./dist/astro.d.ts",
34
+ "default": "./dist/astro.js"
35
+ },
36
+ "./bun": {
37
+ "types": "./dist/bun.d.ts",
38
+ "default": "./dist/bun.js"
39
+ },
40
+ "./esbuild": {
41
+ "types": "./dist/esbuild.d.ts",
42
+ "default": "./dist/esbuild.js"
43
+ },
44
+ "./farm": {
45
+ "types": "./dist/farm.d.ts",
46
+ "default": "./dist/farm.js"
47
+ },
48
+ "./rolldown": {
49
+ "types": "./dist/rolldown.d.ts",
50
+ "default": "./dist/rolldown.js"
51
+ },
52
+ "./rollup": {
53
+ "types": "./dist/rollup.d.ts",
54
+ "default": "./dist/rollup.js"
55
+ },
56
+ "./rsbuild": {
57
+ "types": "./dist/rsbuild.d.ts",
58
+ "default": "./dist/rsbuild.js"
59
+ },
60
+ "./rspack": {
61
+ "types": "./dist/rspack.d.ts",
62
+ "default": "./dist/rspack.js"
63
+ },
64
+ "./unloader": {
65
+ "types": "./dist/unloader.d.ts",
66
+ "default": "./dist/unloader.js"
67
+ },
68
+ "./vite": {
69
+ "types": "./dist/vite.d.ts",
70
+ "default": "./dist/vite.js"
71
+ },
72
+ "./webpack": {
73
+ "types": "./dist/webpack.d.ts",
74
+ "default": "./dist/webpack.js"
75
+ },
76
+ "./package.json": "./package.json"
77
+ },
78
+ "publishConfig": {
79
+ "access": "public"
80
+ },
81
+ "dependencies": {
82
+ "@unframework.dev/codegen": "0.1.0",
83
+ "@unframework.dev/compiler": "0.2.0",
84
+ "@unframework.dev/diagnostics": "0.1.0",
85
+ "@unframework.dev/parser": "0.1.0",
86
+ "magic-string": "^1.4.2",
87
+ "unplugin": "^3.4.0"
88
+ },
89
+ "devDependencies": {
90
+ "@qwik.dev/core": "2.0.0-beta.47",
91
+ "@types/node": "^24.19.0",
92
+ "@unframework.dev/target-angular": "0.1.0",
93
+ "@unframework.dev/target-qwik": "0.1.0",
94
+ "@unframework.dev/target-react": "0.1.0",
95
+ "@unframework.dev/target-solid": "0.1.0",
96
+ "@unframework.dev/target-svelte": "0.1.0",
97
+ "@unframework.dev/target-vue": "0.1.0",
98
+ "@uxfront/typescript-config": "^0.1.0",
99
+ "astro": "7.3.5",
100
+ "react": "19.3.0",
101
+ "react-dom": "19.3.0",
102
+ "solid-js": "1.9.15",
103
+ "svelte": "5.57.1",
104
+ "tsdown": "^0.23.0",
105
+ "vite": "8.3.1",
106
+ "vite-plugin-solid": "2.11.14",
107
+ "vitest": "5.0.3",
108
+ "vue": "3.5.43"
109
+ },
110
+ "peerDependencies": {
111
+ "astro": "7.3.5",
112
+ "vite": "8.3.1"
113
+ },
114
+ "peerDependenciesMeta": {
115
+ "astro": {
116
+ "optional": true
117
+ },
118
+ "vite": {
119
+ "optional": true
120
+ }
121
+ },
122
+ "scripts": {
123
+ "build": "tsdown",
124
+ "check-types": "tsc --noEmit",
125
+ "test": "vitest run"
126
+ }
6
127
  }