vigor-moon 1.0.1 → 1.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.
@@ -596,7 +596,7 @@ async function createDevServer(root, isSSR = false) {
596
596
  plugins: [
597
597
  pluginUnocss(unocssOptions_default),
598
598
  pluginIndexHtml(),
599
- pluginReact(),
599
+ pluginReact({ jsxRuntime: "automatic", jsxImportSource: "react" }),
600
600
  pluginConfig(config),
601
601
  pluginRoutes({ root: config.root, isSSR }),
602
602
  await pluginMdx2()
@@ -595,7 +595,7 @@ async function createDevServer(root, isSSR = false) {
595
595
  plugins: [
596
596
  _vite4.default.call(void 0, unocssOptions_default),
597
597
  pluginIndexHtml(),
598
- _pluginreact2.default.call(void 0, ),
598
+ _pluginreact2.default.call(void 0, { jsxRuntime: "automatic", jsxImportSource: "react" }),
599
599
  pluginConfig(config),
600
600
  pluginRoutes({ root: config.root, isSSR }),
601
601
  await pluginMdx2()
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunkX5IY67V6js = require('./chunk-X5IY67V6.js');
10
+ var _chunkWBWQEJDTjs = require('./chunk-WBWQEJDT.js');
11
11
 
12
12
 
13
13
 
@@ -18,7 +18,7 @@ var require_package = _chunkLS3TOABUjs.__commonJS.call(void 0, {
18
18
  "package.json"(exports, module) {
19
19
  module.exports = {
20
20
  name: "vigor-moon",
21
- version: "1.0.1",
21
+ version: "1.0.2",
22
22
  description: "SSG framework",
23
23
  main: "dist/index.js",
24
24
  module: "dist/index.mjs",
@@ -133,14 +133,14 @@ async function bundle(root, config) {
133
133
  mode: "production",
134
134
  root,
135
135
  plugins: [
136
- _vite4.default.call(void 0, _chunkX5IY67V6js.unocssOptions_default),
137
- _chunkX5IY67V6js.pluginIndexHtml.call(void 0, ),
136
+ _vite4.default.call(void 0, _chunkWBWQEJDTjs.unocssOptions_default),
137
+ _chunkWBWQEJDTjs.pluginIndexHtml.call(void 0, ),
138
138
  _pluginreact2.default.call(void 0, { jsxRuntime: "automatic", jsxImportSource: "react" }),
139
- _chunkX5IY67V6js.pluginConfig.call(void 0, config),
139
+ _chunkWBWQEJDTjs.pluginConfig.call(void 0, config),
140
140
  // 此处的isSSR和isServer其实是一个东西,但是用的结构符,所以名称需要和之前设定的一样
141
141
  // 所以添加了一个参数,直接让其和isServer相同
142
- _chunkX5IY67V6js.pluginRoutes.call(void 0, { root: config.root, isSSR }),
143
- await _chunkX5IY67V6js.pluginMdx.call(void 0, )
142
+ _chunkWBWQEJDTjs.pluginRoutes.call(void 0, { root: config.root, isSSR }),
143
+ await _chunkWBWQEJDTjs.pluginMdx.call(void 0, )
144
144
  ],
145
145
  // 将react-router-dom直接打包进ssr的产物中,不用再单独引入第三方包了
146
146
  ssr: {
@@ -151,7 +151,7 @@ async function bundle(root, config) {
151
151
  ssr: isServer,
152
152
  outDir: isServer ? _path2.default.join(root, ".temp") : _path2.default.join(root, CLIENT_OUTPUT),
153
153
  rollupOptions: {
154
- input: isServer ? _chunkX5IY67V6js.SERVER_ENTRY_PATH : _chunkX5IY67V6js.CLIENT_ENTRY_PATH,
154
+ input: isServer ? _chunkWBWQEJDTjs.SERVER_ENTRY_PATH : _chunkWBWQEJDTjs.CLIENT_ENTRY_PATH,
155
155
  output: {
156
156
  format: isServer ? "cjs" : "esm"
157
157
  }
@@ -273,7 +273,7 @@ var version = require_package().version;
273
273
  var cli = _cac.cac.call(void 0, "vigor").version(version).help();
274
274
  cli.command("[root]", "start dev server").alias("dev").action(async (root) => {
275
275
  root = root ? _path.resolve.call(void 0, root) : process.cwd();
276
- const server = await _chunkX5IY67V6js.createDevServer.call(void 0, root);
276
+ const server = await _chunkWBWQEJDTjs.createDevServer.call(void 0, root);
277
277
  await server.listen();
278
278
  server.printUrls();
279
279
  });
package/dist/cli.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  pluginMdx,
8
8
  pluginRoutes,
9
9
  unocssOptions_default
10
- } from "./chunk-CG4W75R5.mjs";
10
+ } from "./chunk-2PYRPSJR.mjs";
11
11
  import {
12
12
  __commonJS,
13
13
  resolveConfig
@@ -18,7 +18,7 @@ var require_package = __commonJS({
18
18
  "package.json"(exports, module) {
19
19
  module.exports = {
20
20
  name: "vigor-moon",
21
- version: "1.0.1",
21
+ version: "1.0.2",
22
22
  description: "SSG framework",
23
23
  main: "dist/index.js",
24
24
  module: "dist/index.mjs",
package/dist/dev.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkX5IY67V6js = require('./chunk-X5IY67V6.js');
3
+ var _chunkWBWQEJDTjs = require('./chunk-WBWQEJDT.js');
4
4
  require('./chunk-LS3TOABU.js');
5
5
 
6
6
 
7
- exports.createDevServer = _chunkX5IY67V6js.createDevServer;
7
+ exports.createDevServer = _chunkWBWQEJDTjs.createDevServer;
package/dist/dev.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createDevServer
3
- } from "./chunk-CG4W75R5.mjs";
3
+ } from "./chunk-2PYRPSJR.mjs";
4
4
  import "./chunk-SO47EKIV.mjs";
5
5
  export {
6
6
  createDevServer
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vigor-moon",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "SSG framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",