browser-module-frameworks 0.0.0-stage → 0.0.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.
- package/README.md +15 -2
- package/index.d.ts +3 -0
- package/index.js +4 -0
- package/package.json +37 -4
package/README.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# browser-module-frameworks
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Convenient named imports of the framework adapters for [browser-module-runtime](https://www.npmjs.com/package/browser-module-runtime). No eager framework runtime or compiler loading is introduced.
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
import {createRuntime} from 'browser-module-runtime';
|
|
7
|
+
import {solid, svelte, octane} from 'browser-module-frameworks';
|
|
8
|
+
|
|
9
|
+
const runtime=createRuntime({
|
|
10
|
+
plugins:[solid(),svelte({version:'5.39.0'}),octane({version:'0.2.3'})]
|
|
11
|
+
});
|
|
12
|
+
```
|
|
13
|
+
|
|
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
|
+
|
|
16
|
+
See the generic runtime's `browser-module-runtime/html` and `browser-module-runtime/web-components` exports for HTML and custom element registration.
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "browser-module-frameworks",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Convenience re-exports for Solid, Svelte and Octane browser-module-runtime adapters.",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"import": "./index.js"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"index.js",
|
|
14
|
+
"index.d.ts",
|
|
15
|
+
"README.md"
|
|
16
|
+
],
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"browser-runtime-solid": "0.0.2",
|
|
19
|
+
"browser-runtime-svelte": "0.0.2",
|
|
20
|
+
"browser-runtime-octane": "0.0.2"
|
|
21
|
+
},
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"browser-module-runtime": "0.0.2"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=20"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"browser",
|
|
33
|
+
"runtime",
|
|
34
|
+
"solid",
|
|
35
|
+
"svelte",
|
|
36
|
+
"octane",
|
|
37
|
+
"frameworks"
|
|
38
|
+
]
|
|
39
|
+
}
|