@modern-js/plugin-garfish 2.2.0 → 2.3.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.
- package/CHANGELOG.md +15 -0
- package/dist/js/modern/cli/index.js +1 -1
- package/dist/js/node/cli/index.js +1 -1
- package/dist/js/treeshaking/cli/index.js +1 -1
- package/package.json +11 -16
- package/dist/js/modern/global.d.js +0 -0
- package/dist/js/modern/modern-app.env.d.js +0 -0
- package/dist/js/modern/runtime/global.d.js +0 -0
- package/dist/js/node/global.d.js +0 -0
- package/dist/js/node/modern-app.env.d.js +0 -0
- package/dist/js/node/runtime/global.d.js +0 -0
- package/dist/js/treeshaking/global.d.js +0 -1
- package/dist/js/treeshaking/modern-app.env.d.js +0 -1
- package/dist/js/treeshaking/runtime/global.d.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @modern-js/plugin-garfish
|
|
2
2
|
|
|
3
|
+
## 2.3.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f7e90a9: fix: use pluginName instead of a steady name
|
|
8
|
+
修复 garfish 插件导出名称固定导致依赖找不到的问题
|
|
9
|
+
- b4dd017: feat: runtime package use treeshaking production for ssr bundle
|
|
10
|
+
feat: runtime 包使用 treeshaking 产物作为 ssr bundle 打包入口
|
|
11
|
+
- Updated dependencies [fd5a3ed]
|
|
12
|
+
- Updated dependencies [6ca1c0b]
|
|
13
|
+
- Updated dependencies [89b6739]
|
|
14
|
+
- Updated dependencies [b4dd017]
|
|
15
|
+
- @modern-js/utils@2.3.0
|
|
16
|
+
- @modern-js/runtime@2.3.0
|
|
17
|
+
|
|
3
18
|
## 2.2.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -181,7 +181,7 @@ var cli_default = ({
|
|
|
181
181
|
logger("exportStatement", addExportStatement);
|
|
182
182
|
pluginsExportsUtils.addExport(addExportStatement);
|
|
183
183
|
}
|
|
184
|
-
const otherExportStatement = `export { hoistNonReactStatics } from '
|
|
184
|
+
const otherExportStatement = `export { hoistNonReactStatics } from '${pluginName}/deps'`;
|
|
185
185
|
logger("otherExportStatement", otherExportStatement);
|
|
186
186
|
pluginsExportsUtils.addExport(otherExportStatement);
|
|
187
187
|
},
|
|
@@ -197,7 +197,7 @@ var cli_default = ({
|
|
|
197
197
|
(0, import_util.logger)("exportStatement", addExportStatement);
|
|
198
198
|
pluginsExportsUtils.addExport(addExportStatement);
|
|
199
199
|
}
|
|
200
|
-
const otherExportStatement = `export { hoistNonReactStatics } from '
|
|
200
|
+
const otherExportStatement = `export { hoistNonReactStatics } from '${pluginName}/deps'`;
|
|
201
201
|
(0, import_util.logger)("otherExportStatement", otherExportStatement);
|
|
202
202
|
pluginsExportsUtils.addExport(otherExportStatement);
|
|
203
203
|
},
|
|
@@ -292,7 +292,7 @@ var cli_default = function() {
|
|
|
292
292
|
logger("exportStatement", addExportStatement);
|
|
293
293
|
pluginsExportsUtils.addExport(addExportStatement);
|
|
294
294
|
}
|
|
295
|
-
var otherExportStatement = "export { hoistNonReactStatics } from '
|
|
295
|
+
var otherExportStatement = "export { hoistNonReactStatics } from '".concat(pluginName, "/deps'");
|
|
296
296
|
logger("otherExportStatement", otherExportStatement);
|
|
297
297
|
pluginsExportsUtils.addExport(otherExportStatement);
|
|
298
298
|
},
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.3.0",
|
|
15
15
|
"jsnext:source": "./src/cli/index.ts",
|
|
16
16
|
"types": "./dist/types/cli/index.d.ts",
|
|
17
17
|
"typesVersions": {
|
|
@@ -48,15 +48,10 @@
|
|
|
48
48
|
},
|
|
49
49
|
"./deps": {
|
|
50
50
|
"jsnext:source": "./src/deps/index.ts",
|
|
51
|
-
"node": "./dist/js/node/deps/index.js",
|
|
52
51
|
"default": "./dist/js/treeshaking/deps/index.js"
|
|
53
52
|
},
|
|
54
53
|
"./runtime": {
|
|
55
|
-
"
|
|
56
|
-
"jsnext:source": "./src/index.ts",
|
|
57
|
-
"import": "./dist/js/modern/index.js",
|
|
58
|
-
"require": "./dist/js/node/index.js"
|
|
59
|
-
},
|
|
54
|
+
"jsnext:source": "./src/index.ts",
|
|
60
55
|
"default": "./dist/js/treeshaking/runtime/index.js"
|
|
61
56
|
}
|
|
62
57
|
},
|
|
@@ -68,10 +63,10 @@
|
|
|
68
63
|
"garfish": "^1.8.1",
|
|
69
64
|
"hoist-non-react-statics": "^3.3.2",
|
|
70
65
|
"react-loadable": "^5.5.0",
|
|
71
|
-
"@modern-js/utils": "2.
|
|
66
|
+
"@modern-js/utils": "2.3.0"
|
|
72
67
|
},
|
|
73
68
|
"peerDependencies": {
|
|
74
|
-
"@modern-js/runtime": "^2.
|
|
69
|
+
"@modern-js/runtime": "^2.3.0"
|
|
75
70
|
},
|
|
76
71
|
"peerDependenciesMeta": {
|
|
77
72
|
"@modern-js/runtime": {
|
|
@@ -93,13 +88,13 @@
|
|
|
93
88
|
"react-router-dom": "^6.6.0",
|
|
94
89
|
"typescript": "^4",
|
|
95
90
|
"webpack-chain": "^6.5.1",
|
|
96
|
-
"@modern-js/app-tools": "2.
|
|
97
|
-
"@modern-js/core": "2.
|
|
98
|
-
"@modern-js/runtime": "2.
|
|
99
|
-
"@modern-js/plugin-router-v5": "2.
|
|
100
|
-
"@modern-js/types": "2.
|
|
101
|
-
"@scripts/build": "2.
|
|
102
|
-
"@scripts/jest-config": "2.
|
|
91
|
+
"@modern-js/app-tools": "2.3.0",
|
|
92
|
+
"@modern-js/core": "2.3.0",
|
|
93
|
+
"@modern-js/runtime": "2.3.0",
|
|
94
|
+
"@modern-js/plugin-router-v5": "2.3.0",
|
|
95
|
+
"@modern-js/types": "2.3.0",
|
|
96
|
+
"@scripts/build": "2.3.0",
|
|
97
|
+
"@scripts/jest-config": "2.3.0"
|
|
103
98
|
},
|
|
104
99
|
"sideEffects": false,
|
|
105
100
|
"modernConfig": {},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/js/node/global.d.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|