@modern-js/plugin-garfish 2.63.7 → 2.64.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.
@@ -45,7 +45,8 @@ const generateCode = async (entrypoints, appContext, config, hooks) => {
45
45
  await Promise.all(entrypoints.map(async (entrypoint) => {
46
46
  const { entryName, isAutoMount, entry, customEntry, customBootstrap } = entrypoint;
47
47
  const appendCode = await hooks.appendEntryCode.call({
48
- entrypoint
48
+ entrypoint,
49
+ code: ""
49
50
  });
50
51
  if (isAutoMount) {
51
52
  const indexCode = template.index({
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var hooks_exports = {};
16
+ module.exports = __toCommonJS(hooks_exports);
@@ -27,7 +27,8 @@ var generateCode = function() {
27
27
  return [
28
28
  4,
29
29
  hooks.appendEntryCode.call({
30
- entrypoint
30
+ entrypoint,
31
+ code: ""
31
32
  })
32
33
  ];
33
34
  case 1:
File without changes
@@ -11,7 +11,8 @@ const generateCode = async (entrypoints, appContext, config, hooks) => {
11
11
  await Promise.all(entrypoints.map(async (entrypoint) => {
12
12
  const { entryName, isAutoMount, entry, customEntry, customBootstrap } = entrypoint;
13
13
  const appendCode = await hooks.appendEntryCode.call({
14
- entrypoint
14
+ entrypoint,
15
+ code: ""
15
16
  });
16
17
  if (isAutoMount) {
17
18
  const indexCode = template.index({
File without changes
@@ -0,0 +1,5 @@
1
+ import type { Entrypoint } from '@modern-js/types';
2
+ export type AppendEntryCodeFn = (params: {
3
+ entrypoint: Entrypoint;
4
+ code: string;
5
+ }) => string | Promise<string>;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.63.7",
18
+ "version": "2.64.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "typesVersions": {
@@ -69,12 +69,12 @@
69
69
  "debug": "4.3.7",
70
70
  "garfish": "^1.8.1",
71
71
  "react-loadable": "^5.5.0",
72
- "@modern-js/plugin-v2": "2.63.7",
73
- "@modern-js/runtime-utils": "2.63.7",
74
- "@modern-js/utils": "2.63.7"
72
+ "@modern-js/plugin-v2": "2.64.0",
73
+ "@modern-js/runtime-utils": "2.64.0",
74
+ "@modern-js/utils": "2.64.0"
75
75
  },
76
76
  "peerDependencies": {
77
- "@modern-js/runtime": "^2.63.7",
77
+ "@modern-js/runtime": "^2.64.0",
78
78
  "react": ">=17",
79
79
  "react-dom": ">=17"
80
80
  },
@@ -93,13 +93,13 @@
93
93
  "react-dom": "^18.3.1",
94
94
  "react-router-dom": "6.27.0",
95
95
  "typescript": "^5",
96
- "@modern-js/app-tools": "2.63.7",
97
- "@modern-js/core": "2.63.7",
98
- "@modern-js/plugin-router-v5": "2.63.7",
99
- "@modern-js/runtime": "2.63.7",
100
- "@modern-js/types": "2.63.7",
101
- "@scripts/jest-config": "2.63.7",
102
- "@scripts/build": "2.63.7"
96
+ "@modern-js/app-tools": "2.64.0",
97
+ "@modern-js/core": "2.64.0",
98
+ "@modern-js/plugin-router-v5": "2.64.0",
99
+ "@modern-js/runtime": "2.64.0",
100
+ "@modern-js/types": "2.64.0",
101
+ "@scripts/build": "2.64.0",
102
+ "@scripts/jest-config": "2.64.0"
103
103
  },
104
104
  "sideEffects": false,
105
105
  "publishConfig": {