@modern-js/app-tools 2.60.3 → 2.60.4-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -116,13 +116,10 @@ const registerCompiler = async (appDir, distDir, alias) => {
116
116
  }
117
117
  const tsConfigPaths = (await import("@modern-js/utils/tsconfig-paths")).default;
118
118
  if (await import_utils.fs.pathExists(appDir)) {
119
- const loaderRes = tsConfigPaths.loadConfig(appDir);
120
- if (loaderRes.resultType === "success") {
121
- tsConfigPaths.register({
122
- baseUrl: absoluteBaseUrl || "./",
123
- paths: tsPaths
124
- });
125
- }
119
+ tsConfigPaths.register({
120
+ baseUrl: absoluteBaseUrl || "./",
121
+ paths: tsPaths
122
+ });
126
123
  }
127
124
  };
128
125
  // Annotate the CommonJS export names for ESM import in node:
@@ -38,7 +38,7 @@ var registerEsbuild = function() {
38
38
  }();
39
39
  var registerCompiler = function() {
40
40
  var _ref = _async_to_generator(function(appDir, distDir, alias) {
41
- var TS_CONFIG_FILENAME, tsconfigPath, isTsProject, aliasConfig, _aliasConfig_paths, paths, _aliasConfig_absoluteBaseUrl, absoluteBaseUrl, tsPaths, tsConfig, MODERN_NODE_LOADER, tsNode, tsNodeOptions, error, tsConfigPaths, loaderRes;
41
+ var TS_CONFIG_FILENAME, tsconfigPath, isTsProject, aliasConfig, _aliasConfig_paths, paths, _aliasConfig_absoluteBaseUrl, absoluteBaseUrl, tsPaths, tsConfig, MODERN_NODE_LOADER, tsNode, tsNodeOptions, error, tsConfigPaths;
42
42
  return _ts_generator(this, function(_state) {
43
43
  switch (_state.label) {
44
44
  case 0:
@@ -166,13 +166,10 @@ var registerCompiler = function() {
166
166
  ];
167
167
  case 11:
168
168
  if (_state.sent()) {
169
- loaderRes = tsConfigPaths.loadConfig(appDir);
170
- if (loaderRes.resultType === "success") {
171
- tsConfigPaths.register({
172
- baseUrl: absoluteBaseUrl || "./",
173
- paths: tsPaths
174
- });
175
- }
169
+ tsConfigPaths.register({
170
+ baseUrl: absoluteBaseUrl || "./",
171
+ paths: tsPaths
172
+ });
176
173
  }
177
174
  return [
178
175
  2
@@ -83,13 +83,10 @@ const registerCompiler = async (appDir, distDir, alias) => {
83
83
  }
84
84
  const tsConfigPaths = (await import("@modern-js/utils/tsconfig-paths")).default;
85
85
  if (await fs.pathExists(appDir)) {
86
- const loaderRes = tsConfigPaths.loadConfig(appDir);
87
- if (loaderRes.resultType === "success") {
88
- tsConfigPaths.register({
89
- baseUrl: absoluteBaseUrl || "./",
90
- paths: tsPaths
91
- });
92
- }
86
+ tsConfigPaths.register({
87
+ baseUrl: absoluteBaseUrl || "./",
88
+ paths: tsPaths
89
+ });
93
90
  }
94
91
  };
95
92
  export {
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.60.3",
18
+ "version": "2.60.4-alpha.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -88,15 +88,15 @@
88
88
  "mlly": "^1.6.1",
89
89
  "pkg-types": "^1.1.0",
90
90
  "std-env": "^3.7.0",
91
- "@modern-js/node-bundle-require": "2.60.3",
92
- "@modern-js/plugin": "2.60.3",
93
- "@modern-js/plugin-i18n": "2.60.3",
91
+ "@modern-js/core": "2.60.3",
94
92
  "@modern-js/plugin-data-loader": "2.60.3",
95
- "@modern-js/rsbuild-plugin-esbuild": "2.60.3",
93
+ "@modern-js/plugin-i18n": "2.60.3",
94
+ "@modern-js/node-bundle-require": "2.60.3",
96
95
  "@modern-js/prod-server": "2.60.3",
97
- "@modern-js/server": "2.60.3",
98
- "@modern-js/core": "2.60.3",
96
+ "@modern-js/plugin": "2.60.3",
99
97
  "@modern-js/server-core": "2.60.3",
98
+ "@modern-js/server": "2.60.3",
99
+ "@modern-js/rsbuild-plugin-esbuild": "2.60.3",
100
100
  "@modern-js/server-utils": "2.60.3",
101
101
  "@modern-js/types": "2.60.3",
102
102
  "@modern-js/uni-builder": "2.60.3",