@modern-js/plugin-garfish 2.49.3 → 2.49.4
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.
- package/dist/cjs/cli/utils.js +1 -1
- package/dist/esm/cli/utils.js +1 -1
- package/dist/esm-node/cli/utils.js +1 -1
- package/package.json +11 -11
package/dist/cjs/cli/utils.js
CHANGED
|
@@ -111,7 +111,7 @@ const makeRenderFunction = (code) => {
|
|
|
111
111
|
let mountNode = rootDomInfo.mountNode;
|
|
112
112
|
props = rootDomInfo.props;
|
|
113
113
|
`;
|
|
114
|
-
return inGarfishToRender + code.replace(`router(`, `generateRouterPlugin(basename,`).replace(/MOUNT_ID/g, "mountNode").replace(`createApp({`, "createApp({ props,").replace(`bootstrap(AppWrapper, mountNode, root`, "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace(`customBootstrap(AppWrapper`, "customBootstrap(AppWrapper, mountNode");
|
|
114
|
+
return inGarfishToRender + code.replace(`router(`, `generateRouterPlugin(basename,`).replace(/MOUNT_ID/g, "mountNode").replace(`createApp({`, "createApp({ props,").replace(`bootstrap(AppWrapper, mountNode, root`, "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace(`customBootstrap(AppWrapper`, "customBootstrap(AppWrapper, mountNode").replace(/customBootstrap\((.*)\)/g, "customBootstrap($1, props)");
|
|
115
115
|
};
|
|
116
116
|
function getRuntimeConfig(config) {
|
|
117
117
|
var _config_runtime;
|
package/dist/esm/cli/utils.js
CHANGED
|
@@ -3,7 +3,7 @@ var makeProvider = function() {
|
|
|
3
3
|
};
|
|
4
4
|
var makeRenderFunction = function(code) {
|
|
5
5
|
var inGarfishToRender = "\n let { basename, props, dom, appName } = typeof arguments[0] === 'object' && arguments[0] || {};\n if (!canContinueRender({ dom, appName })) return null;\n const rootDomInfo = generateRootDom({dom, props, basename});\n let mountNode = rootDomInfo.mountNode;\n props = rootDomInfo.props;\n ";
|
|
6
|
-
return inGarfishToRender + code.replace("router(", "generateRouterPlugin(basename,").replace(/MOUNT_ID/g, "mountNode").replace("createApp({", "createApp({ props,").replace("bootstrap(AppWrapper, mountNode, root", "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace("customBootstrap(AppWrapper", "customBootstrap(AppWrapper, mountNode");
|
|
6
|
+
return inGarfishToRender + code.replace("router(", "generateRouterPlugin(basename,").replace(/MOUNT_ID/g, "mountNode").replace("createApp({", "createApp({ props,").replace("bootstrap(AppWrapper, mountNode, root", "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace("customBootstrap(AppWrapper", "customBootstrap(AppWrapper, mountNode").replace(/customBootstrap\((.*)\)/g, "customBootstrap($1, props)");
|
|
7
7
|
};
|
|
8
8
|
function getRuntimeConfig(config) {
|
|
9
9
|
var _config_runtime;
|
|
@@ -84,7 +84,7 @@ const makeRenderFunction = (code) => {
|
|
|
84
84
|
let mountNode = rootDomInfo.mountNode;
|
|
85
85
|
props = rootDomInfo.props;
|
|
86
86
|
`;
|
|
87
|
-
return inGarfishToRender + code.replace(`router(`, `generateRouterPlugin(basename,`).replace(/MOUNT_ID/g, "mountNode").replace(`createApp({`, "createApp({ props,").replace(`bootstrap(AppWrapper, mountNode, root`, "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace(`customBootstrap(AppWrapper`, "customBootstrap(AppWrapper, mountNode");
|
|
87
|
+
return inGarfishToRender + code.replace(`router(`, `generateRouterPlugin(basename,`).replace(/MOUNT_ID/g, "mountNode").replace(`createApp({`, "createApp({ props,").replace(`bootstrap(AppWrapper, mountNode, root`, "bootstrap(AppWrapper, mountNode, root = IS_REACT18 ? ReactDOM.createRoot(mountNode) : null").replace(`customBootstrap(AppWrapper`, "customBootstrap(AppWrapper, mountNode").replace(/customBootstrap\((.*)\)/g, "customBootstrap($1, props)");
|
|
88
88
|
};
|
|
89
89
|
function getRuntimeConfig(config) {
|
|
90
90
|
var _config_runtime;
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.49.
|
|
18
|
+
"version": "2.49.4",
|
|
19
19
|
"jsnext:source": "./src/cli/index.ts",
|
|
20
20
|
"types": "./dist/types/cli/index.d.ts",
|
|
21
21
|
"typesVersions": {
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
"hoist-non-react-statics": "^3.3.2",
|
|
71
71
|
"react-loadable": "^5.5.0",
|
|
72
72
|
"@swc/helpers": "0.5.3",
|
|
73
|
-
"@modern-js/utils": "2.49.
|
|
73
|
+
"@modern-js/utils": "2.49.4"
|
|
74
74
|
},
|
|
75
75
|
"peerDependencies": {
|
|
76
|
-
"@modern-js/runtime": "^2.49.
|
|
76
|
+
"@modern-js/runtime": "^2.49.4",
|
|
77
77
|
"react": ">=17",
|
|
78
78
|
"react-dom": ">=17"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
81
|
-
"@rsbuild/shared": "0.6.
|
|
81
|
+
"@rsbuild/shared": "0.6.15",
|
|
82
82
|
"@testing-library/dom": "^8.14.0",
|
|
83
83
|
"@testing-library/jest-dom": "^5.16.1",
|
|
84
84
|
"@testing-library/react": "^13.4.0",
|
|
@@ -93,13 +93,13 @@
|
|
|
93
93
|
"react-dom": "^18",
|
|
94
94
|
"react-router-dom": "6.22.0",
|
|
95
95
|
"typescript": "^5",
|
|
96
|
-
"@modern-js/
|
|
97
|
-
"@modern-js/
|
|
98
|
-
"@modern-js/
|
|
99
|
-
"@modern-js/
|
|
100
|
-
"@
|
|
101
|
-
"@
|
|
102
|
-
"@scripts/jest-config": "2.49.
|
|
96
|
+
"@modern-js/app-tools": "2.49.4",
|
|
97
|
+
"@modern-js/core": "2.49.4",
|
|
98
|
+
"@modern-js/plugin-router-v5": "2.49.4",
|
|
99
|
+
"@modern-js/runtime": "2.49.4",
|
|
100
|
+
"@scripts/build": "2.49.4",
|
|
101
|
+
"@modern-js/types": "2.49.4",
|
|
102
|
+
"@scripts/jest-config": "2.49.4"
|
|
103
103
|
},
|
|
104
104
|
"sideEffects": false,
|
|
105
105
|
"publishConfig": {
|