@modern-js/plugin-bff 2.67.10 → 2.68.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/dist/cjs/cli.js CHANGED
@@ -62,11 +62,15 @@ const bffPlugin = () => ({
62
62
  }
63
63
  const { server } = modernConfig;
64
64
  const { alias } = modernConfig.source;
65
+ const { alias: resolveAlias } = modernConfig.resolve;
65
66
  const { babel } = modernConfig.tools;
66
67
  if (sourceDirs.length > 0) {
67
68
  await (0, import_server_utils.compile)(appDirectory, {
68
69
  server,
69
- alias,
70
+ alias: {
71
+ ...alias,
72
+ ...resolveAlias
73
+ },
70
74
  babelConfig: babel
71
75
  }, {
72
76
  sourceDirs,
package/dist/esm/cli.js CHANGED
@@ -21,7 +21,7 @@ var bffPlugin = function() {
21
21
  setup: function(api) {
22
22
  var compileApi = function() {
23
23
  var _ref = _async_to_generator(function() {
24
- var _api_useAppContext, appDirectory, distDirectory, apiDirectory, sharedDirectory, moduleType, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, alias, babel;
24
+ var _api_useAppContext, appDirectory, distDirectory, apiDirectory, sharedDirectory, moduleType, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, alias, _modernConfig_resolve, resolveAlias, babel;
25
25
  return _ts_generator(this, function(_state) {
26
26
  switch (_state.label) {
27
27
  case 0:
@@ -50,6 +50,7 @@ var bffPlugin = function() {
50
50
  }
51
51
  server = modernConfig.server;
52
52
  alias = modernConfig.source.alias;
53
+ _modernConfig_resolve = modernConfig.resolve, resolveAlias = _modernConfig_resolve.alias;
53
54
  babel = modernConfig.tools.babel;
54
55
  if (!(sourceDirs.length > 0))
55
56
  return [
@@ -60,7 +61,7 @@ var bffPlugin = function() {
60
61
  4,
61
62
  compile(appDirectory, {
62
63
  server,
63
- alias,
64
+ alias: _object_spread({}, alias, resolveAlias),
64
65
  babelConfig: babel
65
66
  }, {
66
67
  sourceDirs,
@@ -28,11 +28,15 @@ const bffPlugin = () => ({
28
28
  }
29
29
  const { server } = modernConfig;
30
30
  const { alias } = modernConfig.source;
31
+ const { alias: resolveAlias } = modernConfig.resolve;
31
32
  const { babel } = modernConfig.tools;
32
33
  if (sourceDirs.length > 0) {
33
34
  await compile(appDirectory, {
34
35
  server,
35
- alias,
36
+ alias: {
37
+ ...alias,
38
+ ...resolveAlias
39
+ },
36
40
  babelConfig: babel
37
41
  }, {
38
42
  sourceDirs,
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.67.10",
18
+ "version": "2.68.0",
19
19
  "jsnext:source": "./src/cli.ts",
20
20
  "types": "./dist/types/cli.d.ts",
21
21
  "main": "./dist/cjs/cli.js",
@@ -76,11 +76,11 @@
76
76
  "@babel/core": "^7.26.0",
77
77
  "@swc/helpers": "^0.5.17",
78
78
  "type-is": "^1.6.18",
79
- "@modern-js/bff-core": "2.67.10",
80
- "@modern-js/create-request": "2.67.10",
81
- "@modern-js/server-core": "2.67.10",
82
- "@modern-js/server-utils": "2.67.10",
83
- "@modern-js/utils": "2.67.10"
79
+ "@modern-js/bff-core": "2.68.0",
80
+ "@modern-js/create-request": "2.68.0",
81
+ "@modern-js/server-core": "2.68.0",
82
+ "@modern-js/server-utils": "2.68.0",
83
+ "@modern-js/utils": "2.68.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/babel__core": "^7.20.5",
@@ -93,12 +93,12 @@
93
93
  "typescript": "^5",
94
94
  "webpack": "^5.99.8",
95
95
  "zod": "^3.22.3",
96
- "@modern-js/app-tools": "2.67.10",
97
- "@modern-js/bff-runtime": "2.67.10",
98
- "@modern-js/core": "2.67.10",
99
- "@modern-js/plugin-v2": "2.67.10",
100
- "@modern-js/runtime": "2.67.10",
101
- "@modern-js/types": "2.67.10",
96
+ "@modern-js/app-tools": "2.68.0",
97
+ "@modern-js/bff-runtime": "2.68.0",
98
+ "@modern-js/core": "2.68.0",
99
+ "@modern-js/runtime": "2.68.0",
100
+ "@modern-js/plugin-v2": "2.68.0",
101
+ "@modern-js/types": "2.68.0",
102
102
  "@scripts/build": "2.66.0",
103
103
  "@scripts/jest-config": "2.66.0"
104
104
  },