@unframework.dev/unplugin 0.0.0-stage → 0.0.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/README.md +420 -2
- package/dist/assemble.js +133 -0
- package/dist/astro.d.ts +11 -0
- package/dist/astro.js +38 -0
- package/dist/bun.d.ts +2 -0
- package/dist/bun.js +2 -0
- package/dist/chain.js +50 -0
- package/dist/detect.js +117 -0
- package/dist/esbuild.d.ts +2 -0
- package/dist/esbuild.js +2 -0
- package/dist/farm.d.ts +2 -0
- package/dist/farm.js +2 -0
- package/dist/ids.d.ts +63 -0
- package/dist/ids.js +180 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +3 -0
- package/dist/plugin.d.ts +87 -0
- package/dist/plugin.js +858 -0
- package/dist/rolldown.d.ts +2 -0
- package/dist/rolldown.js +2 -0
- package/dist/rollup.d.ts +2 -0
- package/dist/rollup.js +2 -0
- package/dist/rsbuild.d.ts +2 -0
- package/dist/rsbuild.js +2 -0
- package/dist/rspack.d.ts +2 -0
- package/dist/rspack.js +2 -0
- package/dist/unloader.d.ts +2 -0
- package/dist/unloader.js +2 -0
- package/dist/vite.d.ts +12 -0
- package/dist/vite.js +13 -0
- package/dist/webpack.d.ts +2 -0
- package/dist/webpack.js +2 -0
- package/package.json +124 -3
package/dist/rolldown.js
ADDED
package/dist/rollup.d.ts
ADDED
package/dist/rollup.js
ADDED
package/dist/rsbuild.js
ADDED
package/dist/rspack.d.ts
ADDED
package/dist/rspack.js
ADDED
package/dist/unloader.js
ADDED
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 };
|
package/dist/webpack.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,127 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unframework.dev/unplugin",
|
|
3
|
-
"version": "0.0.0
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.0.0",
|
|
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.0.0",
|
|
83
|
+
"@unframework.dev/compiler": "0.0.0",
|
|
84
|
+
"@unframework.dev/diagnostics": "0.0.0",
|
|
85
|
+
"@unframework.dev/parser": "0.0.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.0.0",
|
|
93
|
+
"@unframework.dev/target-qwik": "0.0.0",
|
|
94
|
+
"@unframework.dev/target-react": "0.0.0",
|
|
95
|
+
"@unframework.dev/target-solid": "0.0.0",
|
|
96
|
+
"@unframework.dev/target-svelte": "0.0.0",
|
|
97
|
+
"@unframework.dev/target-vue": "0.0.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
|
}
|