@vixt/react 0.10.1 → 0.11.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.
@@ -1,7 +1,9 @@
1
+ import { ReactVixtOptions } from "./node.mjs";
1
2
  import * as _$_vixt_core0 from "@vixt/core";
2
3
  import * as _$vite from "vite";
3
4
 
4
- //#region src/index.d.ts
5
+ //#region src/node/index.d.ts
6
+ /** @hidden */
5
7
  declare const _default: (options?: _$_vixt_core0.VixtOptions | undefined) => _$vite.PluginOption;
6
8
  //#endregion
7
- export { _default as default };
9
+ export { ReactVixtOptions, _default as default };
@@ -0,0 +1,38 @@
1
+ import { r as __toESM } from "./chunk-e9Ob2GDo.mjs";
2
+ import { t as require_lib } from "./lib-ByhivYXf.mjs";
3
+ import { c as resolvePathSync } from "./dist-OcbwbyG4.mjs";
4
+ import { t as preset_react_default } from "./preset-react-DWJpAlWQ.mjs";
5
+ import virtual_root_component_default from "./modules/virtual-root-component.mjs";
6
+ import virtual_setup_layouts_default from "./modules/virtual-setup-layouts.mjs";
7
+ import { ReactVixtOptions } from "./node.d.mts";
8
+ import { createVixtPlugin } from "@vixt/core";
9
+ //#region src/node/index.ts
10
+ /** @module react */
11
+ var import_lib = /* @__PURE__ */ __toESM(require_lib(), 1);
12
+ /** @hidden */
13
+ var node_default = createVixtPlugin({ defaults: {
14
+ modules: [
15
+ preset_react_default,
16
+ virtual_root_component_default,
17
+ virtual_setup_layouts_default
18
+ ],
19
+ app: {
20
+ entryFile: "main.tsx",
21
+ entryCode: import_lib.default.readFileSync(resolvePathSync("@vixt/react/client/entry"), "utf-8"),
22
+ head: { meta: [{ charset: "utf-8" }, {
23
+ name: "viewport",
24
+ content: "width=device-width, initial-scale=1.0"
25
+ }] }
26
+ },
27
+ imports: { imports: [
28
+ "react",
29
+ "react-router",
30
+ "ahooks"
31
+ ] },
32
+ typescript: { tsConfig: { compilerOptions: {
33
+ jsxImportSource: "react",
34
+ types: ["@vixt/react/types", "vite-plugin-pages/client-react"]
35
+ } } }
36
+ } });
37
+ //#endregion
38
+ export { ReactVixtOptions, node_default as default };