browser-module-frameworks 0.0.1 → 0.0.2
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 +4 -2
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -4,13 +4,15 @@ Convenient named imports of the framework adapters for [browser-module-runtime](
|
|
|
4
4
|
|
|
5
5
|
```js
|
|
6
6
|
import {createRuntime} from 'browser-module-runtime';
|
|
7
|
-
import {solid, svelte, octane} from 'browser-module-frameworks';
|
|
7
|
+
import {solid, svelte, octane, vue} from 'browser-module-frameworks';
|
|
8
8
|
|
|
9
9
|
const runtime=createRuntime({
|
|
10
|
-
plugins:[solid(),svelte({version:'5.39.0'}),octane({version:'0.2.3'})]
|
|
10
|
+
plugins:[solid(),svelte({version:'5.39.0'}),octane({version:'0.2.3'}),vue({version:'3.5.18'})]
|
|
11
11
|
});
|
|
12
12
|
```
|
|
13
13
|
|
|
14
14
|
Each adapter remains available through its own package. The aggregator is simply re-exports, not a new runtime or renderer. You can also import `normalizeInlineSvelte` for editor/source processing.
|
|
15
15
|
|
|
16
16
|
See the generic runtime's `browser-module-runtime/html` and `browser-module-runtime/web-components` exports for HTML and custom element registration.
|
|
17
|
+
|
|
18
|
+
Vue supports `.vue` SFCs (including `<script setup>`, templates, and scoped CSS) with the official lazy `vue/compiler-sfc` browser compiler. See `browser-runtime-vue`.
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-module-frameworks",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Convenience re-exports for Solid, Svelte and
|
|
5
|
+
"description": "Convenience re-exports for Solid, Svelte, Octane and Vue adapters.",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
8
|
"types": "./index.d.ts",
|
|
@@ -15,12 +15,13 @@
|
|
|
15
15
|
"README.md"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"browser-runtime-solid": "0.0.
|
|
19
|
-
"browser-runtime-svelte": "0.0.
|
|
20
|
-
"browser-runtime-octane": "0.0.
|
|
18
|
+
"browser-runtime-solid": "0.0.3",
|
|
19
|
+
"browser-runtime-svelte": "0.0.3",
|
|
20
|
+
"browser-runtime-octane": "0.0.3",
|
|
21
|
+
"browser-runtime-vue": "0.0.1"
|
|
21
22
|
},
|
|
22
23
|
"peerDependencies": {
|
|
23
|
-
"browser-module-runtime": "0.0.
|
|
24
|
+
"browser-module-runtime": "0.0.3"
|
|
24
25
|
},
|
|
25
26
|
"engines": {
|
|
26
27
|
"node": ">=20"
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
"solid",
|
|
35
36
|
"svelte",
|
|
36
37
|
"octane",
|
|
37
|
-
"frameworks"
|
|
38
|
+
"frameworks",
|
|
39
|
+
"vue"
|
|
38
40
|
]
|
|
39
41
|
}
|