vigor-moon 1.0.0 → 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.
Files changed (53) hide show
  1. package/dist/{chunk-CG4W75R5.mjs → chunk-2PYRPSJR.mjs} +1 -1
  2. package/dist/{chunk-X5IY67V6.js → chunk-WBWQEJDT.js} +1 -1
  3. package/dist/cli.js +13 -11
  4. package/dist/cli.mjs +6 -4
  5. package/dist/dev.js +2 -2
  6. package/dist/dev.mjs +1 -1
  7. package/package.json +4 -2
  8. package/dist/chunk-2M2XJKGT.js +0 -607
  9. package/dist/chunk-3EAR5BNQ.js +0 -610
  10. package/dist/chunk-3ZCIQMBL.js +0 -608
  11. package/dist/chunk-6SPQ2G5U.js +0 -611
  12. package/dist/chunk-7V4TYSIZ.mjs +0 -619
  13. package/dist/chunk-AT54N5D7.js +0 -611
  14. package/dist/chunk-BBRRUMIN.js +0 -616
  15. package/dist/chunk-BE2AQAQS.mjs +0 -608
  16. package/dist/chunk-BS6X4ZCI.js +0 -608
  17. package/dist/chunk-D2WJMNSR.js +0 -618
  18. package/dist/chunk-DTA4ZJEQ.mjs +0 -606
  19. package/dist/chunk-ECPJL6H6.js +0 -618
  20. package/dist/chunk-EU5K7BUZ.mjs +0 -612
  21. package/dist/chunk-FAELXJ3Z.mjs +0 -605
  22. package/dist/chunk-GBGTGHKN.js +0 -621
  23. package/dist/chunk-HW7CAZGA.js +0 -611
  24. package/dist/chunk-IDQ7PFDG.mjs +0 -619
  25. package/dist/chunk-IPVDS3I7.mjs +0 -609
  26. package/dist/chunk-JHZIOXVJ.js +0 -605
  27. package/dist/chunk-KRBN43PO.js +0 -606
  28. package/dist/chunk-KTIICQHT.mjs +0 -622
  29. package/dist/chunk-KZQIA6WA.js +0 -604
  30. package/dist/chunk-L4MZ52TR.mjs +0 -609
  31. package/dist/chunk-LEOZIK2T.mjs +0 -607
  32. package/dist/chunk-MHZT64KI.mjs +0 -605
  33. package/dist/chunk-NTJI6VKJ.mjs +0 -619
  34. package/dist/chunk-NWZZITYZ.mjs +0 -606
  35. package/dist/chunk-OS3F7QDD.js +0 -606
  36. package/dist/chunk-PJPXX4UA.mjs +0 -605
  37. package/dist/chunk-PW73M55D.mjs +0 -611
  38. package/dist/chunk-R6L6GYA4.mjs +0 -607
  39. package/dist/chunk-RNUPZ4CR.mjs +0 -612
  40. package/dist/chunk-SEIXDGYJ.mjs +0 -615
  41. package/dist/chunk-SYCZ35ZW.js +0 -604
  42. package/dist/chunk-THZGRR4I.js +0 -611
  43. package/dist/chunk-TJ5NMLCW.js +0 -614
  44. package/dist/chunk-TYBNSCBA.mjs +0 -611
  45. package/dist/chunk-UGBCHWPA.js +0 -621
  46. package/dist/chunk-VD42YO6T.mjs +0 -622
  47. package/dist/chunk-VMNTKZYD.js +0 -604
  48. package/dist/chunk-W6MHPTGR.js +0 -605
  49. package/dist/chunk-WBSL45KV.mjs +0 -617
  50. package/dist/chunk-XFGBQ3QD.mjs +0 -612
  51. package/dist/chunk-ZBAZASII.js +0 -618
  52. package/dist/chunk-ZGLENLKC.js +0 -610
  53. package/dist/chunk-ZN4CSBNG.mjs +0 -612
@@ -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
 
@@ -17,8 +17,8 @@ var _chunkLS3TOABUjs = require('./chunk-LS3TOABU.js');
17
17
  var require_package = _chunkLS3TOABUjs.__commonJS.call(void 0, {
18
18
  "package.json"(exports, module) {
19
19
  module.exports = {
20
- name: "vigor",
21
- version: "1.1.0",
20
+ name: "vigor-moon",
21
+ version: "1.0.2",
22
22
  description: "SSG framework",
23
23
  main: "dist/index.js",
24
24
  module: "dist/index.mjs",
@@ -80,7 +80,9 @@ var require_package = _chunkLS3TOABUjs.__commonJS.call(void 0, {
80
80
  },
81
81
  dependencies: {
82
82
  "@loadable/component": "^5.15.3",
83
- "@mdx-js/rollup": "2.1.3",
83
+ "@mdx-js/rollup": "2",
84
+ "@mdx-js/mdx": "^2.1.3",
85
+ "@mdx-js/react": "^2.1.3",
84
86
  "@types/react": "^18.0.27",
85
87
  "@vitejs/plugin-react": "^3.1.0",
86
88
  acorn: "^8.8.2",
@@ -131,14 +133,14 @@ async function bundle(root, config) {
131
133
  mode: "production",
132
134
  root,
133
135
  plugins: [
134
- _vite4.default.call(void 0, _chunkX5IY67V6js.unocssOptions_default),
135
- _chunkX5IY67V6js.pluginIndexHtml.call(void 0, ),
136
+ _vite4.default.call(void 0, _chunkWBWQEJDTjs.unocssOptions_default),
137
+ _chunkWBWQEJDTjs.pluginIndexHtml.call(void 0, ),
136
138
  _pluginreact2.default.call(void 0, { jsxRuntime: "automatic", jsxImportSource: "react" }),
137
- _chunkX5IY67V6js.pluginConfig.call(void 0, config),
139
+ _chunkWBWQEJDTjs.pluginConfig.call(void 0, config),
138
140
  // 此处的isSSR和isServer其实是一个东西,但是用的结构符,所以名称需要和之前设定的一样
139
141
  // 所以添加了一个参数,直接让其和isServer相同
140
- _chunkX5IY67V6js.pluginRoutes.call(void 0, { root: config.root, isSSR }),
141
- await _chunkX5IY67V6js.pluginMdx.call(void 0, )
142
+ _chunkWBWQEJDTjs.pluginRoutes.call(void 0, { root: config.root, isSSR }),
143
+ await _chunkWBWQEJDTjs.pluginMdx.call(void 0, )
142
144
  ],
143
145
  // 将react-router-dom直接打包进ssr的产物中,不用再单独引入第三方包了
144
146
  ssr: {
@@ -149,7 +151,7 @@ async function bundle(root, config) {
149
151
  ssr: isServer,
150
152
  outDir: isServer ? _path2.default.join(root, ".temp") : _path2.default.join(root, CLIENT_OUTPUT),
151
153
  rollupOptions: {
152
- input: isServer ? _chunkX5IY67V6js.SERVER_ENTRY_PATH : _chunkX5IY67V6js.CLIENT_ENTRY_PATH,
154
+ input: isServer ? _chunkWBWQEJDTjs.SERVER_ENTRY_PATH : _chunkWBWQEJDTjs.CLIENT_ENTRY_PATH,
153
155
  output: {
154
156
  format: isServer ? "cjs" : "esm"
155
157
  }
@@ -271,7 +273,7 @@ var version = require_package().version;
271
273
  var cli = _cac.cac.call(void 0, "vigor").version(version).help();
272
274
  cli.command("[root]", "start dev server").alias("dev").action(async (root) => {
273
275
  root = root ? _path.resolve.call(void 0, root) : process.cwd();
274
- const server = await _chunkX5IY67V6js.createDevServer.call(void 0, root);
276
+ const server = await _chunkWBWQEJDTjs.createDevServer.call(void 0, root);
275
277
  await server.listen();
276
278
  server.printUrls();
277
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
@@ -17,8 +17,8 @@ import {
17
17
  var require_package = __commonJS({
18
18
  "package.json"(exports, module) {
19
19
  module.exports = {
20
- name: "vigor",
21
- version: "1.1.0",
20
+ name: "vigor-moon",
21
+ version: "1.0.2",
22
22
  description: "SSG framework",
23
23
  main: "dist/index.js",
24
24
  module: "dist/index.mjs",
@@ -80,7 +80,9 @@ var require_package = __commonJS({
80
80
  },
81
81
  dependencies: {
82
82
  "@loadable/component": "^5.15.3",
83
- "@mdx-js/rollup": "2.1.3",
83
+ "@mdx-js/rollup": "2",
84
+ "@mdx-js/mdx": "^2.1.3",
85
+ "@mdx-js/react": "^2.1.3",
84
86
  "@types/react": "^18.0.27",
85
87
  "@vitejs/plugin-react": "^3.1.0",
86
88
  acorn: "^8.8.2",
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.0",
3
+ "version": "1.0.2",
4
4
  "description": "SSG framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -52,7 +52,9 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@loadable/component": "^5.15.3",
55
- "@mdx-js/rollup": "2.1.3",
55
+ "@mdx-js/rollup": "2",
56
+ "@mdx-js/mdx": "^2.1.3",
57
+ "@mdx-js/react": "^2.1.3",
56
58
  "@types/react": "^18.0.27",
57
59
  "@vitejs/plugin-react": "^3.1.0",
58
60
  "acorn": "^8.8.2",