@modern-js/plugin-polyfill 1.0.0-alpha.3 → 1.0.0-rc.12

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,9 +1,109 @@
1
1
  # @modern-js/plugin-polyfill
2
2
 
3
- ## 1.0.0-alpha.3
3
+ ## 1.0.0-rc.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+ - Updated dependencies [224f7fe]
10
+ - Updated dependencies [204c626]
11
+ - @modern-js/core@1.0.0-rc.12
12
+ - @modern-js/server-plugin@1.0.0-rc.12
13
+
14
+ ## 1.0.0-rc.11
15
+
16
+ ### Patch Changes
17
+
18
+ - 224f7fe: fix server route match
19
+ - 204c626: feat: initial
20
+ - Updated dependencies [224f7fe]
21
+ - Updated dependencies [204c626]
22
+ - @modern-js/core@1.0.0-rc.11
23
+ - @modern-js/server-plugin@1.0.0-rc.11
24
+
25
+ ## 1.0.0-rc.10
26
+
27
+ ### Patch Changes
28
+
29
+ - 224f7fe: fix server route match
30
+ - 204c626: feat: initial
31
+ - Updated dependencies [224f7fe]
32
+ - Updated dependencies [204c626]
33
+ - @modern-js/core@1.0.0-rc.10
34
+ - @modern-js/server-plugin@1.0.0-rc.10
35
+
36
+ ## 1.0.0-rc.9
37
+
38
+ ### Patch Changes
39
+
40
+ - 224f7fe: fix server route match
41
+ - 204c626: feat: initial
42
+ - Updated dependencies [224f7fe]
43
+ - Updated dependencies [204c626]
44
+ - @modern-js/core@1.0.0-rc.9
45
+ - @modern-js/server-plugin@1.0.0-rc.9
46
+
47
+ ## 1.0.0-rc.8
48
+
49
+ ### Patch Changes
50
+
51
+ - 224f7fe: fix server route match
52
+ - 204c626: feat: initial
53
+ - Updated dependencies [224f7fe]
54
+ - Updated dependencies [204c626]
55
+ - @modern-js/core@1.0.0-rc.8
56
+ - @modern-js/server-plugin@1.0.0-rc.8
57
+
58
+ ## 1.0.0-rc.7
59
+
60
+ ### Patch Changes
61
+
62
+ - 224f7fe: fix server route match
63
+ - 204c626: feat: initial
64
+ - Updated dependencies [224f7fe]
65
+ - Updated dependencies [204c626]
66
+ - @modern-js/core@1.0.0-rc.7
67
+ - @modern-js/server-plugin@1.0.0-rc.7
68
+
69
+ ## 1.0.0-rc.6
70
+
71
+ ### Patch Changes
72
+
73
+ - 224f7fe: fix server route match
74
+ - 204c626: feat: initial
75
+ - Updated dependencies [224f7fe]
76
+ - Updated dependencies [204c626]
77
+ - @modern-js/core@1.0.0-rc.6
78
+ - @modern-js/server-plugin@1.0.0-rc.6
79
+
80
+ ## 1.0.0-rc.5
81
+
82
+ ### Patch Changes
83
+
84
+ - 224f7fe: fix server route match
85
+ - 204c626: feat: initial
86
+ - Updated dependencies [224f7fe]
87
+ - Updated dependencies [204c626]
88
+ - @modern-js/core@1.0.0-rc.5
89
+ - @modern-js/server-plugin@1.0.0-rc.5
90
+
91
+ ## 1.0.0-rc.4
92
+
93
+ ### Patch Changes
94
+
95
+ - fix server route match
96
+ - 204c626: feat: initial
97
+ - Updated dependencies [undefined]
98
+ - Updated dependencies [204c626]
99
+ - @modern-js/core@1.0.0-rc.4
100
+ - @modern-js/server-plugin@1.0.0-rc.4
101
+
102
+ ## 1.0.0-rc.3
103
+
4
104
  ### Patch Changes
5
105
 
6
106
  - feat: initial
7
107
  - Updated dependencies [undefined]
8
- - @modern-js/core@1.0.0-alpha.3
9
- - @modern-js/server-plugin@1.0.0-alpha.3
108
+ - @modern-js/core@1.0.0-rc.3
109
+ - @modern-js/server-plugin@1.0.0-rc.3
package/README.md CHANGED
@@ -3,30 +3,22 @@
3
3
  <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
4
4
  </p>
5
5
 
6
- <p align="center">现代 Web 工程体系</p>
6
+ <p align="center">
7
+ 现代 Web 工程体系
8
+ <br/>
9
+ <a href="https://modernjs.dev" target="blank">
10
+ modernjs.dev
11
+ </a>
12
+ </p>
13
+
7
14
 
8
- ## 背景
15
+ ## 参考链接
9
16
  - [迈入现代 Web 开发](https://zhuanlan.zhihu.com/p/386607009)
10
17
  - [现代 Web 开发者问卷调查报告](https://zhuanlan.zhihu.com/p/403206195)
18
+ - [字节跳动是如何落地微前端的](https://mp.weixin.qq.com/s/L9wbfNG5fTXF5bx7dcgj4Q)
11
19
 
12
- ## 计划
13
-
14
- Modern.js 的 1.0.0.rc 版已经发到 npm,目前在做测试改进,README 文档之后统一提供(现阶段加入测试和开发,可以发 [issue](https://github.com/modern-js-dev/modern.js/issues) 留微信联系),完整的文档站计划在10月14日上线
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
20
+ ## 近期计划
31
21
 
22
+ Modern.js 的 1.0.0.rc 版已经发到 npm,目前在做测试改进和文档建设。
32
23
 
24
+ README、完整的文档站、介绍等,都计划在 10 月 27 日上线。
@@ -6,9 +6,7 @@ export default createPlugin(() => ({
6
6
  partials
7
7
  }) {
8
8
  // eslint-disable-next-line react-hooks/rules-of-hooks
9
- const {
10
- value: resolvedConfig
11
- } = useResolvedConfigContext();
9
+ const resolvedConfig = useResolvedConfigContext();
12
10
 
13
11
  if (resolvedConfig.output.polyfill === 'ua') {
14
12
  partials.top.push(`<script src="${defaultPolyfill}" crossorigin></script>`);
@@ -15,9 +15,7 @@ var _default = (0, _core.createPlugin)(() => ({
15
15
  partials
16
16
  }) {
17
17
  // eslint-disable-next-line react-hooks/rules-of-hooks
18
- const {
19
- value: resolvedConfig
20
- } = (0, _core.useResolvedConfigContext)();
18
+ const resolvedConfig = (0, _core.useResolvedConfigContext)();
21
19
 
22
20
  if (resolvedConfig.output.polyfill === 'ua') {
23
21
  partials.top.push(`<script src="${_const.defaultPolyfill}" crossorigin></script>`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/plugin-polyfill",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-rc.12",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/js/node/index.js",
@@ -24,15 +24,15 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7",
27
- "@modern-js/core": "^1.0.0-alpha.3",
27
+ "@modern-js/core": "^1.0.0-rc.12",
28
28
  "@modern-js/polyfill-lib": "^1.0.0-rc.0",
29
- "@modern-js/server-plugin": "^1.0.0-alpha.3",
29
+ "@modern-js/server-plugin": "^1.0.0-rc.12",
30
30
  "lru-cache": "^6.0.0",
31
31
  "mime-types": "^2.1.32",
32
32
  "ua-parser-js": "^0.7.28"
33
33
  },
34
34
  "devDependencies": {
35
- "@modern-js/types": "^1.0.0-alpha.3",
35
+ "@modern-js/types": "^1.0.0-rc.12",
36
36
  "@types/jest": "^26",
37
37
  "@types/lru-cache": "^5.1.1",
38
38
  "@types/mime-types": "^2.1.1",
@@ -41,8 +41,8 @@
41
41
  "@types/react-dom": "^17",
42
42
  "@types/ua-parser-js": "^0.7.36",
43
43
  "typescript": "^4",
44
- "@modern-js/plugin-testing": "^1.0.0-alpha.3",
45
- "@modern-js/module-tools": "^1.0.0-alpha.3"
44
+ "@modern-js/plugin-testing": "^1.0.0-rc.12",
45
+ "@modern-js/module-tools": "^1.0.0-rc.12"
46
46
  },
47
47
  "sideEffects": false,
48
48
  "modernConfig": {
@@ -50,6 +50,10 @@
50
50
  "packageMode": "node-js"
51
51
  }
52
52
  },
53
+ "publishConfig": {
54
+ "registry": "https://registry.npmjs.org/",
55
+ "access": "public"
56
+ },
53
57
  "scripts": {
54
58
  "new": "modern new",
55
59
  "build": "modern build",
package/src/cli.ts CHANGED
@@ -6,7 +6,7 @@ export default createPlugin(
6
6
  ({
7
7
  htmlPartials({ entrypoint, partials }: any) {
8
8
  // eslint-disable-next-line react-hooks/rules-of-hooks
9
- const { value: resolvedConfig } = useResolvedConfigContext();
9
+ const resolvedConfig = useResolvedConfigContext();
10
10
  if (resolvedConfig.output.polyfill === 'ua') {
11
11
  partials.top.push(
12
12
  `<script src="${defaultPolyfill}" crossorigin></script>`,