browser-module-frameworks
v0.0.13
Published
Convenience re-exports for Solid 2, Solid 1, Svelte, Octane and Vue adapters.
Downloads
1,941
Maintainers
Readme
browser-module-frameworks
Convenient named imports of the framework adapters for browser-module-runtime. No eager framework runtime or compiler loading is introduced.
import {createRuntime} from 'browser-module-runtime';
import {solid, svelte, octane, vue} from 'browser-module-frameworks';
const runtime=createRuntime({
plugins:[solid(),svelte({version:'5.39.0'}),octane({version:'0.2.3'}),vue({version:'3.5.18'})]
});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.
See the generic runtime's browser-module-runtime/html and browser-module-runtime/web-components exports for HTML and custom element registration.
Vue supports .vue SFCs (including <script setup>, templates, and scoped CSS) with the official lazy vue/compiler-sfc browser compiler. See browser-runtime-vue.
Solid 1 is now available separately as solid1() from browser-runtime-solid1 or this aggregator. solid() remains Solid 2. A single runtime cannot use both plugins; create independent runtimes and validate coexistence in your browser before deploying.
