@modern-js/app-tools 2.57.1 → 2.58.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -73,10 +73,10 @@ const builderPluginAdpaterCopy = (options) => ({
73
73
  const filepaths = (await import_fs_extra.default.readdir(publicDir)).map((file) => import_path.default.resolve(publicDir, file));
74
74
  await Promise.all(filepaths.filter((file) => HTML_REGEXP.test(file)).map(async (file) => {
75
75
  const content = await import_fs_extra.default.readFile(file, "utf-8");
76
- if (publicPath) {
76
+ if (publicPath && typeof publicPath === "string") {
77
77
  await import_fs_extra.default.writeFile(file, content.replace(/<%=\s*assetPrefix\s*%>/g, (0, import_utils.removeTailSlash)(publicPath)));
78
78
  } else {
79
- import_utils.logger.warn("Expect get a string from `publicPath`, but receive `undefined`.");
79
+ import_utils.logger.warn(`Expect get a string from \`publicPath\`, but receive \`${typeof publicPath}\`.`);
80
80
  await import_fs_extra.default.writeFile(file, content.replace(/<%=\s*assetPrefix\s*%>/g, (0, import_utils.removeTailSlash)("/")));
81
81
  }
82
82
  }));
@@ -110,7 +110,7 @@ const newCommand = (program, locale) => {
110
110
  });
111
111
  };
112
112
  const inspectCommand = (program, api) => {
113
- program.command("inspect").description("inspect the internal configs").option(`--env <env>`, import_locale.i18n.t(import_locale.localeKeys.command.inspect.env), "development").option("--output <output>", import_locale.i18n.t(import_locale.localeKeys.command.inspect.output), "/").option("--verbose", import_locale.i18n.t(import_locale.localeKeys.command.inspect.verbose)).option("-c --config <config>", import_locale.i18n.t(import_locale.localeKeys.command.shared.config)).action(async (options) => {
113
+ program.command("inspect").description("inspect the internal configs").option(`--env <env>`, import_locale.i18n.t(import_locale.localeKeys.command.inspect.env), "development").option("--output <output>", import_locale.i18n.t(import_locale.localeKeys.command.inspect.output), "./").option("--verbose", import_locale.i18n.t(import_locale.localeKeys.command.inspect.verbose)).option("-c --config <config>", import_locale.i18n.t(import_locale.localeKeys.command.shared.config)).action(async (options) => {
114
114
  const { inspect } = await Promise.resolve().then(() => __toESM(require("./inspect")));
115
115
  inspect(api, options);
116
116
  });
@@ -132,7 +132,10 @@ var analyze_default = ({ bundler }) => ({
132
132
  normalizedConfig,
133
133
  appContext
134
134
  });
135
- builder.onBeforeBuild(async ({ bundlerConfigs }) => {
135
+ builder.onBeforeBuild(async ({ bundlerConfigs, isFirstCompile }) => {
136
+ if (!isFirstCompile) {
137
+ return;
138
+ }
136
139
  const hookRunners2 = api.useHookRunners();
137
140
  await (0, import_routes.generateRoutes)(appContext);
138
141
  await hookRunners2.beforeBuild({
@@ -28,7 +28,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
  var dependencies_exports = {};
30
30
  __export(dependencies_exports, {
31
- handleDependencies: () => handleDependencies
31
+ handleDependencies: () => handleDependencies,
32
+ nodeFileTrace: () => import_nft.nodeFileTrace
32
33
  });
33
34
  module.exports = __toCommonJS(dependencies_exports);
34
35
  var import_node_path = __toESM(require("node:path"));
@@ -36,10 +37,16 @@ var import_utils = require("@modern-js/utils");
36
37
  var import_pkg_types = require("pkg-types");
37
38
  var import_mlly = require("mlly");
38
39
  var import_utils2 = require("./utils");
39
- const handleDependencies = async ({ appDir, serverRootDir, includeEntries, traceFiles = import_utils2.traceFiles, entryFilter, modifyPackageJson, copyWholePackage }) => {
40
+ var import_nft = require("@vercel/nft");
41
+ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, traceFiles = import_utils2.traceFiles, entryFilter, modifyPackageJson, copyWholePackage, traceOptions }) => {
40
42
  const base = "/";
41
43
  const entryFiles = await (0, import_utils2.findEntryFiles)(serverRootDir, entryFilter);
42
- const fileTrace = await traceFiles(entryFiles.concat(includeEntries), serverRootDir, base);
44
+ const fileTrace = await traceFiles({
45
+ entryFiles: entryFiles.concat(includeEntries),
46
+ serverRootDir,
47
+ base,
48
+ traceOptions
49
+ });
43
50
  const currentProjectModules = import_node_path.default.join(appDir, "node_modules");
44
51
  const dependencySearchRoot = import_node_path.default.resolve(appDir, "../../../../../../");
45
52
  const tracedFiles = Object.fromEntries(await Promise.all([
@@ -224,5 +231,6 @@ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, trace
224
231
  };
225
232
  // Annotate the CommonJS export names for ESM import in node:
226
233
  0 && (module.exports = {
227
- handleDependencies
234
+ handleDependencies,
235
+ nodeFileTrace
228
236
  });
@@ -139,10 +139,11 @@ const findPackageParents = (pkg, version, tracedFiles) => {
139
139
  ];
140
140
  return parentPkgs.filter((parentPkg) => parentPkg);
141
141
  };
142
- const traceFiles = async (entryFiles, serverRootDir, base = "/") => {
142
+ const traceFiles = async ({ entryFiles, serverRootDir, base = "/", traceOptions }) => {
143
143
  return await (0, import_nft.nodeFileTrace)(entryFiles, {
144
144
  base,
145
- processCwd: serverRootDir
145
+ processCwd: serverRootDir,
146
+ ...traceOptions
146
147
  });
147
148
  };
148
149
  const resolveTracedPath = async (base, p) => import_utils.fs.realpath(import_path.default.resolve(base, p));
@@ -1,5 +1,6 @@
1
1
  import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
2
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
3
+ import { _ as _type_of } from "@swc/helpers/_/_type_of";
3
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
5
  import path from "path";
5
6
  import fs from "@modern-js/utils/fs-extra";
@@ -61,7 +62,7 @@ var builderPluginAdpaterCopy = function(options) {
61
62
  return _transformHtmlFiles.apply(this, arguments);
62
63
  }
63
64
  function _transformHtmlFiles() {
64
- _transformHtmlFiles = /** tramsform public/*.html manaully */
65
+ _transformHtmlFiles = /** transform public/*.html manaully */
65
66
  _async_to_generator(function() {
66
67
  var _normalizedConfig_output_distPath, normalizedConfig, publicDir, HTML_REGEXP, filepaths;
67
68
  return _ts_generator(this, function(_state) {
@@ -99,7 +100,7 @@ var builderPluginAdpaterCopy = function(options) {
99
100
  ];
100
101
  case 1:
101
102
  content = _state2.sent();
102
- if (!publicPath)
103
+ if (!(publicPath && typeof publicPath === "string"))
103
104
  return [
104
105
  3,
105
106
  3
@@ -115,7 +116,7 @@ var builderPluginAdpaterCopy = function(options) {
115
116
  5
116
117
  ];
117
118
  case 3:
118
- logger.warn("Expect get a string from `publicPath`, but receive `undefined`.");
119
+ logger.warn("Expect get a string from `publicPath`, but receive `".concat(typeof publicPath === "undefined" ? "undefined" : _type_of(publicPath), "`."));
119
120
  return [
120
121
  4,
121
122
  fs.writeFile(file, content.replace(/<%=\s*assetPrefix\s*%>/g, removeTailSlash("/")))
@@ -358,7 +358,7 @@ var newCommand = function(program, locale) {
358
358
  }());
359
359
  };
360
360
  var inspectCommand = function(program, api) {
361
- program.command("inspect").description("inspect the internal configs").option("--env <env>", i18n.t(localeKeys.command.inspect.env), "development").option("--output <output>", i18n.t(localeKeys.command.inspect.output), "/").option("--verbose", i18n.t(localeKeys.command.inspect.verbose)).option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).action(function() {
361
+ program.command("inspect").description("inspect the internal configs").option("--env <env>", i18n.t(localeKeys.command.inspect.env), "development").option("--output <output>", i18n.t(localeKeys.command.inspect.output), "./").option("--verbose", i18n.t(localeKeys.command.inspect.verbose)).option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).action(function() {
362
362
  var _ref = _async_to_generator(function(options) {
363
363
  var inspect;
364
364
  return _ts_generator(this, function(_state) {
@@ -202,11 +202,16 @@ function analyze_default(param) {
202
202
  builder = _state.sent();
203
203
  builder.onBeforeBuild(function() {
204
204
  var _ref2 = _async_to_generator(function(param2) {
205
- var bundlerConfigs, hookRunners2;
205
+ var bundlerConfigs, isFirstCompile, hookRunners2;
206
206
  return _ts_generator(this, function(_state2) {
207
207
  switch (_state2.label) {
208
208
  case 0:
209
- bundlerConfigs = param2.bundlerConfigs;
209
+ bundlerConfigs = param2.bundlerConfigs, isFirstCompile = param2.isFirstCompile;
210
+ if (!isFirstCompile) {
211
+ return [
212
+ 2
213
+ ];
214
+ }
210
215
  hookRunners2 = api.useHookRunners();
211
216
  return [
212
217
  4,
@@ -8,13 +8,14 @@ import { fs as fse, pkgUp, semver } from "@modern-js/utils";
8
8
  import { readPackageJSON } from "pkg-types";
9
9
  import { parseNodeModulePath } from "mlly";
10
10
  import { linkPackage, writePackage, isFile, findEntryFiles, traceFiles as defaultTraceFiles, findPackageParents, resolveTracedPath, readDirRecursive, isSubPath } from "./utils";
11
+ import { nodeFileTrace } from "@vercel/nft";
11
12
  var handleDependencies = function() {
12
13
  var _ref = _async_to_generator(function(param) {
13
- var appDir, serverRootDir, includeEntries, _param_traceFiles, traceFiles, entryFilter, modifyPackageJson, copyWholePackage, base, entryFiles, fileTrace, currentProjectModules, dependencySearchRoot, tracedFiles, _, tracedPackages, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, tracedFile, pkgName, tracedPackage, pkgJSON, tracedPackageVersion, shouldCopyWholePackage, _tracedPackageVersion_files, allFiles, err, multiVersionPkgs, singleVersionPackages, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, tracedPackage1, versions, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, version, projectPkgJson, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _loop, _iterator3, _step3, err, outputPkgPath, newPkgJson, finalPkgJson;
14
+ var appDir, serverRootDir, includeEntries, _param_traceFiles, traceFiles, entryFilter, modifyPackageJson, copyWholePackage, traceOptions, base, entryFiles, fileTrace, currentProjectModules, dependencySearchRoot, tracedFiles, _, tracedPackages, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, tracedFile, pkgName, tracedPackage, pkgJSON, tracedPackageVersion, shouldCopyWholePackage, _tracedPackageVersion_files, allFiles, err, multiVersionPkgs, singleVersionPackages, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, tracedPackage1, versions, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, version, projectPkgJson, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _loop, _iterator3, _step3, err, outputPkgPath, newPkgJson, finalPkgJson;
14
15
  return _ts_generator(this, function(_state) {
15
16
  switch (_state.label) {
16
17
  case 0:
17
- appDir = param.appDir, serverRootDir = param.serverRootDir, includeEntries = param.includeEntries, _param_traceFiles = param.traceFiles, traceFiles = _param_traceFiles === void 0 ? defaultTraceFiles : _param_traceFiles, entryFilter = param.entryFilter, modifyPackageJson = param.modifyPackageJson, copyWholePackage = param.copyWholePackage;
18
+ appDir = param.appDir, serverRootDir = param.serverRootDir, includeEntries = param.includeEntries, _param_traceFiles = param.traceFiles, traceFiles = _param_traceFiles === void 0 ? defaultTraceFiles : _param_traceFiles, entryFilter = param.entryFilter, modifyPackageJson = param.modifyPackageJson, copyWholePackage = param.copyWholePackage, traceOptions = param.traceOptions;
18
19
  base = "/";
19
20
  return [
20
21
  4,
@@ -24,7 +25,12 @@ var handleDependencies = function() {
24
25
  entryFiles = _state.sent();
25
26
  return [
26
27
  4,
27
- traceFiles(entryFiles.concat(includeEntries), serverRootDir, base)
28
+ traceFiles({
29
+ entryFiles: entryFiles.concat(includeEntries),
30
+ serverRootDir,
31
+ base,
32
+ traceOptions
33
+ })
28
34
  ];
29
35
  case 2:
30
36
  fileTrace = _state.sent();
@@ -603,5 +609,6 @@ var handleDependencies = function() {
603
609
  };
604
610
  }();
605
611
  export {
606
- handleDependencies
612
+ handleDependencies,
613
+ nodeFileTrace
607
614
  };
@@ -1,4 +1,5 @@
1
1
  import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
2
+ import { _ as _object_spread } from "@swc/helpers/_/_object_spread";
2
3
  import { _ as _to_consumable_array } from "@swc/helpers/_/_to_consumable_array";
3
4
  import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
4
5
  import path from "path";
@@ -335,19 +336,18 @@ var findPackageParents = function(pkg, version, tracedFiles) {
335
336
  });
336
337
  };
337
338
  var traceFiles = function() {
338
- var _ref = _async_to_generator(function(entryFiles, serverRootDir) {
339
- var base;
340
- var _arguments = arguments;
339
+ var _ref = _async_to_generator(function(param) {
340
+ var entryFiles, serverRootDir, _param_base, base, traceOptions;
341
341
  return _ts_generator(this, function(_state) {
342
342
  switch (_state.label) {
343
343
  case 0:
344
- base = _arguments.length > 2 && _arguments[2] !== void 0 ? _arguments[2] : "/";
344
+ entryFiles = param.entryFiles, serverRootDir = param.serverRootDir, _param_base = param.base, base = _param_base === void 0 ? "/" : _param_base, traceOptions = param.traceOptions;
345
345
  return [
346
346
  4,
347
- nodeFileTrace(entryFiles, {
347
+ nodeFileTrace(entryFiles, _object_spread({
348
348
  base,
349
349
  processCwd: serverRootDir
350
- })
350
+ }, traceOptions))
351
351
  ];
352
352
  case 1:
353
353
  return [
@@ -357,7 +357,7 @@ var traceFiles = function() {
357
357
  }
358
358
  });
359
359
  });
360
- return function traceFiles2(entryFiles, serverRootDir) {
360
+ return function traceFiles2(_) {
361
361
  return _ref.apply(this, arguments);
362
362
  };
363
363
  }();
@@ -40,10 +40,10 @@ const builderPluginAdpaterCopy = (options) => ({
40
40
  const filepaths = (await fs.readdir(publicDir)).map((file) => path.resolve(publicDir, file));
41
41
  await Promise.all(filepaths.filter((file) => HTML_REGEXP.test(file)).map(async (file) => {
42
42
  const content = await fs.readFile(file, "utf-8");
43
- if (publicPath) {
43
+ if (publicPath && typeof publicPath === "string") {
44
44
  await fs.writeFile(file, content.replace(/<%=\s*assetPrefix\s*%>/g, removeTailSlash(publicPath)));
45
45
  } else {
46
- logger.warn("Expect get a string from `publicPath`, but receive `undefined`.");
46
+ logger.warn(`Expect get a string from \`publicPath\`, but receive \`${typeof publicPath}\`.`);
47
47
  await fs.writeFile(file, content.replace(/<%=\s*assetPrefix\s*%>/g, removeTailSlash("/")));
48
48
  }
49
49
  }));
@@ -71,7 +71,7 @@ const newCommand = (program, locale) => {
71
71
  });
72
72
  };
73
73
  const inspectCommand = (program, api) => {
74
- program.command("inspect").description("inspect the internal configs").option(`--env <env>`, i18n.t(localeKeys.command.inspect.env), "development").option("--output <output>", i18n.t(localeKeys.command.inspect.output), "/").option("--verbose", i18n.t(localeKeys.command.inspect.verbose)).option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).action(async (options) => {
74
+ program.command("inspect").description("inspect the internal configs").option(`--env <env>`, i18n.t(localeKeys.command.inspect.env), "development").option("--output <output>", i18n.t(localeKeys.command.inspect.output), "./").option("--verbose", i18n.t(localeKeys.command.inspect.verbose)).option("-c --config <config>", i18n.t(localeKeys.command.shared.config)).action(async (options) => {
75
75
  const { inspect } = await import("./inspect");
76
76
  inspect(api, options);
77
77
  });
@@ -99,7 +99,10 @@ var analyze_default = ({ bundler }) => ({
99
99
  normalizedConfig,
100
100
  appContext
101
101
  });
102
- builder.onBeforeBuild(async ({ bundlerConfigs }) => {
102
+ builder.onBeforeBuild(async ({ bundlerConfigs, isFirstCompile }) => {
103
+ if (!isFirstCompile) {
104
+ return;
105
+ }
103
106
  const hookRunners2 = api.useHookRunners();
104
107
  await generateRoutes(appContext);
105
108
  await hookRunners2.beforeBuild({
@@ -3,10 +3,16 @@ import { fs as fse, pkgUp, semver } from "@modern-js/utils";
3
3
  import { readPackageJSON } from "pkg-types";
4
4
  import { parseNodeModulePath } from "mlly";
5
5
  import { linkPackage, writePackage, isFile, findEntryFiles, traceFiles as defaultTraceFiles, findPackageParents, resolveTracedPath, readDirRecursive, isSubPath } from "./utils";
6
- const handleDependencies = async ({ appDir, serverRootDir, includeEntries, traceFiles = defaultTraceFiles, entryFilter, modifyPackageJson, copyWholePackage }) => {
6
+ import { nodeFileTrace } from "@vercel/nft";
7
+ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, traceFiles = defaultTraceFiles, entryFilter, modifyPackageJson, copyWholePackage, traceOptions }) => {
7
8
  const base = "/";
8
9
  const entryFiles = await findEntryFiles(serverRootDir, entryFilter);
9
- const fileTrace = await traceFiles(entryFiles.concat(includeEntries), serverRootDir, base);
10
+ const fileTrace = await traceFiles({
11
+ entryFiles: entryFiles.concat(includeEntries),
12
+ serverRootDir,
13
+ base,
14
+ traceOptions
15
+ });
10
16
  const currentProjectModules = path.join(appDir, "node_modules");
11
17
  const dependencySearchRoot = path.resolve(appDir, "../../../../../../");
12
18
  const tracedFiles = Object.fromEntries(await Promise.all([
@@ -190,5 +196,6 @@ const handleDependencies = async ({ appDir, serverRootDir, includeEntries, trace
190
196
  await fse.writeJSON(outputPkgPath, finalPkgJson);
191
197
  };
192
198
  export {
193
- handleDependencies
199
+ handleDependencies,
200
+ nodeFileTrace
194
201
  };
@@ -98,10 +98,11 @@ const findPackageParents = (pkg, version, tracedFiles) => {
98
98
  ];
99
99
  return parentPkgs.filter((parentPkg) => parentPkg);
100
100
  };
101
- const traceFiles = async (entryFiles, serverRootDir, base = "/") => {
101
+ const traceFiles = async ({ entryFiles, serverRootDir, base = "/", traceOptions }) => {
102
102
  return await nodeFileTrace(entryFiles, {
103
103
  base,
104
- processCwd: serverRootDir
104
+ processCwd: serverRootDir,
105
+ ...traceOptions
105
106
  });
106
107
  };
107
108
  const resolveTracedPath = async (base, p) => fse.realpath(path.resolve(base, p));
@@ -1,5 +1,5 @@
1
1
  import type { IAppContext } from '@modern-js/core';
2
2
  import type { AppNormalizedConfig } from '../../types';
3
3
  export declare function getBuilderEnvironments(normalizedConfig: AppNormalizedConfig<'shared'>, appContext: IAppContext): {
4
- [name: string]: import("@rsbuild/core/dist-types/types").EnvironmentConfig;
4
+ [name: string]: import("@rsbuild/core").EnvironmentConfig;
5
5
  };
@@ -1,11 +1,20 @@
1
1
  import type { PackageJson } from 'pkg-types';
2
+ import type { NodeFileTraceOptions } from '@vercel/nft';
2
3
  import { traceFiles as defaultTraceFiles } from './utils';
3
- export declare const handleDependencies: ({ appDir, serverRootDir, includeEntries, traceFiles, entryFilter, modifyPackageJson, copyWholePackage, }: {
4
+ export type { NodeFileTraceOptions } from '@vercel/nft';
5
+ export { nodeFileTrace } from '@vercel/nft';
6
+ export declare const handleDependencies: ({ appDir, serverRootDir, includeEntries, traceFiles, entryFilter, modifyPackageJson, copyWholePackage, traceOptions, }: {
4
7
  appDir: string;
5
8
  serverRootDir: string;
6
9
  includeEntries: string[];
7
- traceFiles?: ((entryFiles: string[], serverRootDir: string, base?: string) => Promise<import("@vercel/nft").NodeFileTraceResult>) | undefined;
10
+ traceFiles?: (({ entryFiles, serverRootDir, base, traceOptions, }: {
11
+ entryFiles: string[];
12
+ serverRootDir: string;
13
+ base?: string | undefined;
14
+ traceOptions?: NodeFileTraceOptions | undefined;
15
+ }) => Promise<import("@vercel/nft").NodeFileTraceResult>) | undefined;
8
16
  entryFilter?: ((filePath: string) => boolean) | undefined;
9
17
  modifyPackageJson?: ((pkgJson: PackageJson) => PackageJson) | undefined;
10
18
  copyWholePackage?: ((pkgName: string) => boolean) | undefined;
19
+ traceOptions?: NodeFileTraceOptions | undefined;
11
20
  }) => Promise<void>;
@@ -1,4 +1,5 @@
1
1
  import type { PackageJson } from 'pkg-types';
2
+ import { NodeFileTraceOptions } from '@vercel/nft';
2
3
  export type TracedPackage = {
3
4
  name: string;
4
5
  versions: Record<string, {
@@ -32,7 +33,12 @@ export declare const readDirRecursive: (dir: string, options?: ReadDirOptions) =
32
33
  export declare const isFile: (file: string) => Promise<boolean>;
33
34
  export declare const findEntryFiles: (rootDir: string, entryFilter?: ((filePath: string) => boolean) | undefined) => Promise<string[]>;
34
35
  export declare const findPackageParents: (pkg: TracedPackage, version: string, tracedFiles: Record<string, TracedFile>) => string[];
35
- export declare const traceFiles: (entryFiles: string[], serverRootDir: string, base?: string) => Promise<import("@vercel/nft").NodeFileTraceResult>;
36
+ export declare const traceFiles: ({ entryFiles, serverRootDir, base, traceOptions, }: {
37
+ entryFiles: string[];
38
+ serverRootDir: string;
39
+ base?: string | undefined;
40
+ traceOptions?: NodeFileTraceOptions | undefined;
41
+ }) => Promise<import("@vercel/nft").NodeFileTraceResult>;
36
42
  export declare const resolveTracedPath: (base: string, p: string) => Promise<string>;
37
43
  export declare const isSubPath: (parentPath: string, childPath: string) => boolean | "";
38
44
  export {};
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.57.1",
18
+ "version": "2.58.0",
19
19
  "jsnext:source": "./src/index.ts",
20
20
  "types": "./dist/types/index.d.ts",
21
21
  "main": "./dist/cjs/index.js",
@@ -78,7 +78,7 @@
78
78
  "@babel/traverse": "^7.23.2",
79
79
  "@babel/types": "^7.24.7",
80
80
  "@rsbuild/plugin-node-polyfill": "1.0.3",
81
- "@rsbuild/core": "1.0.1-beta.3",
81
+ "@rsbuild/core": "1.0.1-beta.9",
82
82
  "@swc/helpers": "0.5.3",
83
83
  "@vercel/nft": "^0.26.4",
84
84
  "es-module-lexer": "^1.1.0",
@@ -87,23 +87,23 @@
87
87
  "mlly": "^1.6.1",
88
88
  "pkg-types": "^1.1.0",
89
89
  "std-env": "^3.7.0",
90
- "@modern-js/core": "2.57.1",
91
- "@modern-js/plugin": "2.57.1",
92
- "@modern-js/node-bundle-require": "2.57.1",
93
- "@modern-js/plugin-data-loader": "2.57.1",
94
- "@modern-js/plugin-i18n": "2.57.1",
95
- "@modern-js/plugin-lint": "2.57.1",
96
- "@modern-js/rsbuild-plugin-esbuild": "2.57.1",
97
- "@modern-js/server": "2.57.1",
98
- "@modern-js/prod-server": "2.57.1",
99
- "@modern-js/server-core": "2.57.1",
100
- "@modern-js/types": "2.57.1",
101
- "@modern-js/utils": "2.57.1",
102
- "@modern-js/server-utils": "2.57.1",
103
- "@modern-js/uni-builder": "2.57.1"
90
+ "@modern-js/core": "2.58.0",
91
+ "@modern-js/plugin-data-loader": "2.58.0",
92
+ "@modern-js/node-bundle-require": "2.58.0",
93
+ "@modern-js/plugin-lint": "2.58.0",
94
+ "@modern-js/rsbuild-plugin-esbuild": "2.58.0",
95
+ "@modern-js/plugin": "2.58.0",
96
+ "@modern-js/plugin-i18n": "2.58.0",
97
+ "@modern-js/prod-server": "2.58.0",
98
+ "@modern-js/server": "2.58.0",
99
+ "@modern-js/server-utils": "2.58.0",
100
+ "@modern-js/types": "2.58.0",
101
+ "@modern-js/uni-builder": "2.58.0",
102
+ "@modern-js/server-core": "2.58.0",
103
+ "@modern-js/utils": "2.58.0"
104
104
  },
105
105
  "devDependencies": {
106
- "@rsbuild/plugin-swc": "1.0.1-beta.3",
106
+ "@rsbuild/plugin-swc": "1.0.1-beta.9",
107
107
  "@types/babel__traverse": "7.18.5",
108
108
  "@types/jest": "^29",
109
109
  "@types/node": "^14",
@@ -112,8 +112,8 @@
112
112
  "tsconfig-paths": "^4.2.0",
113
113
  "typescript": "^5",
114
114
  "webpack": "^5.93.0",
115
- "@scripts/build": "2.57.1",
116
- "@scripts/jest-config": "2.57.1"
115
+ "@scripts/jest-config": "2.58.0",
116
+ "@scripts/build": "2.58.0"
117
117
  },
118
118
  "sideEffects": false,
119
119
  "publishConfig": {