@modern-js/plugin-server 2.13.4 → 2.14.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @modern-js/plugin-server
2
2
 
3
+ ## 2.14.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 8a3c693: chore(server): no longer replace globalVars when compiler is babel
8
+
9
+ chore(server): 进行 babel compile 时不再替换 globalVars
10
+
11
+ - Updated dependencies [4779152]
12
+ - Updated dependencies [8a3c693]
13
+ - Updated dependencies [9321bef]
14
+ - Updated dependencies [9b45c58]
15
+ - Updated dependencies [52d0cb1]
16
+ - Updated dependencies [60a81d0]
17
+ - Updated dependencies [dacef96]
18
+ - Updated dependencies [16399fd]
19
+ - @modern-js/utils@2.14.0
20
+ - @modern-js/server-utils@2.14.0
21
+
3
22
  ## 2.13.4
4
23
 
5
24
  ### Patch Changes
package/dist/cjs/cli.js CHANGED
@@ -56,7 +56,7 @@ var cli_default = () => ({
56
56
  sourceDirs.push(sharedDir);
57
57
  }
58
58
  const { server } = modernConfig;
59
- const { alias, globalVars } = modernConfig.source;
59
+ const { alias } = modernConfig.source;
60
60
  const { babel } = modernConfig.tools;
61
61
  if (sourceDirs.length > 0) {
62
62
  await (0, import_server_utils.compile)(
@@ -64,7 +64,6 @@ var cli_default = () => ({
64
64
  {
65
65
  server,
66
66
  alias,
67
- globalVars,
68
67
  babelConfig: babel
69
68
  },
70
69
  {
package/dist/esm/cli.js CHANGED
@@ -137,7 +137,7 @@ var cli_default = function() {
137
137
  },
138
138
  afterBuild: function afterBuild() {
139
139
  return _asyncToGenerator(function() {
140
- var _api_useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig_source, alias, globalVars, babel;
140
+ var _api_useAppContext, appDirectory, distDirectory, modernConfig, distDir, serverDir, sharedDir, tsconfigPath, sourceDirs, server, alias, babel;
141
141
  return __generator(this, function(_state) {
142
142
  switch(_state.label){
143
143
  case 0:
@@ -155,7 +155,7 @@ var cli_default = function() {
155
155
  sourceDirs.push(sharedDir);
156
156
  }
157
157
  server = modernConfig.server;
158
- _modernConfig_source = modernConfig.source, alias = _modernConfig_source.alias, globalVars = _modernConfig_source.globalVars;
158
+ alias = modernConfig.source.alias;
159
159
  babel = modernConfig.tools.babel;
160
160
  if (!(sourceDirs.length > 0)) return [
161
161
  3,
@@ -166,7 +166,6 @@ var cli_default = function() {
166
166
  compile(appDirectory, {
167
167
  server: server,
168
168
  alias: alias,
169
- globalVars: globalVars,
170
169
  babelConfig: babel
171
170
  }, {
172
171
  sourceDirs: sourceDirs,
@@ -24,7 +24,7 @@ var cli_default = () => ({
24
24
  sourceDirs.push(sharedDir);
25
25
  }
26
26
  const { server } = modernConfig;
27
- const { alias, globalVars } = modernConfig.source;
27
+ const { alias } = modernConfig.source;
28
28
  const { babel } = modernConfig.tools;
29
29
  if (sourceDirs.length > 0) {
30
30
  await compile(
@@ -32,7 +32,6 @@ var cli_default = () => ({
32
32
  {
33
33
  server,
34
34
  alias,
35
- globalVars,
36
35
  babelConfig: babel
37
36
  },
38
37
  {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.13.4",
14
+ "version": "2.14.0",
15
15
  "types": "./dist/types/cli.d.ts",
16
16
  "jsnext:source": "./src/cli",
17
17
  "main": "./dist/cjs/cli.js",
@@ -47,20 +47,20 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.18.0",
50
- "@modern-js/server-utils": "2.13.4",
51
- "@modern-js/utils": "2.13.4"
50
+ "@modern-js/server-utils": "2.14.0",
51
+ "@modern-js/utils": "2.14.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "typescript": "^4",
55
55
  "@types/jest": "^29",
56
56
  "@types/node": "^14",
57
57
  "jest": "^29",
58
- "@modern-js/server-core": "2.13.4",
59
- "@modern-js/app-tools": "2.13.4",
60
- "@modern-js/core": "2.13.4",
61
- "@scripts/build": "2.13.4",
62
- "@modern-js/types": "2.13.4",
63
- "@scripts/jest-config": "2.13.4"
58
+ "@modern-js/server-core": "2.14.0",
59
+ "@modern-js/app-tools": "2.14.0",
60
+ "@modern-js/core": "2.14.0",
61
+ "@scripts/build": "2.14.0",
62
+ "@modern-js/types": "2.14.0",
63
+ "@scripts/jest-config": "2.14.0"
64
64
  },
65
65
  "sideEffects": [
66
66
  "*.css",