@modern-js/plugin-ssg 1.2.15-alpha.0 → 1.2.15

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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # @modern-js/plugin-ssg
2
2
 
3
- ## 1.2.15-alpha.0
3
+ ## 1.2.15
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [9cd364e06]
8
- - Updated dependencies [a90bc96bd]
9
- - @modern-js/utils@1.7.9-alpha.0
7
+ - d6b7383: ssg load plugin correctly
8
+ - Updated dependencies [dc4676b]
9
+ - @modern-js/utils@1.7.12
10
10
 
11
11
  ## 1.2.14
12
12
 
@@ -31,7 +31,10 @@ process.on('message', async chunk => {
31
31
  appDirectory,
32
32
  plugins
33
33
  } = context;
34
- const instances = plugins.map(plugin => safetyRequire(plugin, appDirectory));
34
+ const instances = plugins.map(plugin => {
35
+ const mod = safetyRequire(plugin, appDirectory);
36
+ return mod();
37
+ });
35
38
  let modernServer = null;
36
39
 
37
40
  try {
@@ -40,7 +40,10 @@ process.on('message', async chunk => {
40
40
  appDirectory,
41
41
  plugins
42
42
  } = context;
43
- const instances = plugins.map(plugin => safetyRequire(plugin, appDirectory));
43
+ const instances = plugins.map(plugin => {
44
+ const mod = safetyRequire(plugin, appDirectory);
45
+ return mod();
46
+ });
44
47
  let modernServer = null;
45
48
 
46
49
  try {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.15-alpha.0",
14
+ "version": "1.2.15",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -55,22 +55,22 @@
55
55
  },
56
56
  "dependencies": {
57
57
  "@babel/runtime": "^7.18.0",
58
- "@modern-js/utils": "^1.7.9-alpha.0",
58
+ "@modern-js/utils": "^1.7.12",
59
59
  "node-mocks-http": "^1.10.1",
60
60
  "normalize-path": "^3.0.0",
61
61
  "portfinder": "^1.0.28",
62
62
  "react-router-dom": "^5.2.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@modern-js/types": "1.5.5-alpha.0",
66
- "@modern-js/prod-server": "1.1.9-alpha.0",
65
+ "@modern-js/types": "1.5.6",
66
+ "@modern-js/prod-server": "1.1.9",
67
67
  "@types/jest": "^27",
68
68
  "@types/node": "^14",
69
69
  "@types/react": "^17",
70
70
  "@types/react-dom": "^17",
71
71
  "@types/react-router": "^5.1.16",
72
72
  "@types/react-router-dom": "^5.1.8",
73
- "@modern-js/core": "1.12.2-alpha.0",
73
+ "@modern-js/core": "1.12.4",
74
74
  "@scripts/build": "0.0.0",
75
75
  "@scripts/jest-config": "0.0.0",
76
76
  "react": "^17",