@modern-js/plugin-bff 2.13.4 → 2.14.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @modern-js/plugin-bff
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
+ - @modern-js/bff-core@2.14.0
22
+ - @modern-js/create-request@2.14.0
23
+
3
24
  ## 2.13.4
4
25
 
5
26
  ### Patch Changes
package/dist/cjs/cli.js CHANGED
@@ -143,7 +143,7 @@ var cli_default = () => ({
143
143
  sourceDirs.push(sharedDir);
144
144
  }
145
145
  const { server } = modernConfig;
146
- const { alias, define, globalVars } = modernConfig.source;
146
+ const { alias } = modernConfig.source;
147
147
  const { babel } = modernConfig.tools;
148
148
  if (sourceDirs.length > 0) {
149
149
  await (0, import_server_utils.compile)(
@@ -151,8 +151,6 @@ var cli_default = () => ({
151
151
  {
152
152
  server,
153
153
  alias,
154
- define,
155
- globalVars,
156
154
  babelConfig: babel
157
155
  },
158
156
  {
package/dist/esm/cli.js CHANGED
@@ -315,7 +315,7 @@ var cli_default = function() {
315
315
  },
316
316
  afterBuild: function afterBuild() {
317
317
  return _asyncToGenerator(function() {
318
- var _api_useAppContext, appDirectory, distDirectory, apiDirectory, sharedDirectory, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig_source, alias, define, globalVars, babel;
318
+ var _api_useAppContext, appDirectory, distDirectory, apiDirectory, sharedDirectory, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, alias, babel;
319
319
  return __generator(this, function(_state) {
320
320
  switch(_state.label){
321
321
  case 0:
@@ -336,7 +336,7 @@ var cli_default = function() {
336
336
  sourceDirs.push(sharedDir);
337
337
  }
338
338
  server = modernConfig.server;
339
- _modernConfig_source = modernConfig.source, alias = _modernConfig_source.alias, define = _modernConfig_source.define, globalVars = _modernConfig_source.globalVars;
339
+ alias = modernConfig.source.alias;
340
340
  babel = modernConfig.tools.babel;
341
341
  if (!(sourceDirs.length > 0)) return [
342
342
  3,
@@ -347,8 +347,6 @@ var cli_default = function() {
347
347
  compile(appDirectory, {
348
348
  server: server,
349
349
  alias: alias,
350
- define: define,
351
- globalVars: globalVars,
352
350
  babelConfig: babel
353
351
  }, {
354
352
  sourceDirs: sourceDirs,
@@ -118,7 +118,7 @@ var cli_default = () => ({
118
118
  sourceDirs.push(sharedDir);
119
119
  }
120
120
  const { server } = modernConfig;
121
- const { alias, define, globalVars } = modernConfig.source;
121
+ const { alias } = modernConfig.source;
122
122
  const { babel } = modernConfig.tools;
123
123
  if (sourceDirs.length > 0) {
124
124
  await compile(
@@ -126,8 +126,6 @@ var cli_default = () => ({
126
126
  {
127
127
  server,
128
128
  alias,
129
- define,
130
- globalVars,
131
129
  babelConfig: babel
132
130
  },
133
131
  {
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
  "jsnext:source": "./src/cli.ts",
16
16
  "types": "./dist/types/cli.d.ts",
17
17
  "main": "./dist/cjs/cli.js",
@@ -53,10 +53,10 @@
53
53
  "dependencies": {
54
54
  "@babel/core": "^7.18.0",
55
55
  "@babel/runtime": "^7.18.0",
56
- "@modern-js/bff-core": "2.13.4",
57
- "@modern-js/create-request": "2.13.4",
58
- "@modern-js/server-utils": "2.13.4",
59
- "@modern-js/utils": "2.13.4"
56
+ "@modern-js/bff-core": "2.14.0",
57
+ "@modern-js/create-request": "2.14.0",
58
+ "@modern-js/server-utils": "2.14.0",
59
+ "@modern-js/utils": "2.14.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/babel__core": "^7.1.15",
@@ -68,14 +68,14 @@
68
68
  "typescript": "^4",
69
69
  "webpack": "^5.76.2",
70
70
  "webpack-chain": "^6.5.1",
71
- "@modern-js/runtime": "2.13.4",
72
- "@modern-js/core": "2.13.4",
73
- "@modern-js/bff-runtime": "2.13.4",
74
- "@modern-js/server-core": "2.13.4",
75
- "@modern-js/types": "2.13.4",
76
- "@modern-js/app-tools": "2.13.4",
77
- "@scripts/build": "2.13.4",
78
- "@scripts/jest-config": "2.13.4"
71
+ "@modern-js/runtime": "2.14.0",
72
+ "@modern-js/core": "2.14.0",
73
+ "@modern-js/bff-runtime": "2.14.0",
74
+ "@modern-js/server-core": "2.14.0",
75
+ "@modern-js/types": "2.14.0",
76
+ "@modern-js/app-tools": "2.14.0",
77
+ "@scripts/build": "2.14.0",
78
+ "@scripts/jest-config": "2.14.0"
79
79
  },
80
80
  "sideEffects": false,
81
81
  "publishConfig": {