@modern-js/utils 2.21.1 → 2.22.1-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (155) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/FileSizeReporter.d.ts +16 -0
  3. package/dist/FileSizeReporter.js +162 -0
  4. package/dist/alias.d.ts +25 -0
  5. package/dist/alias.js +108 -0
  6. package/dist/analyzeProject.d.ts +2 -0
  7. package/dist/analyzeProject.js +71 -0
  8. package/dist/applyOptionsChain.d.ts +3 -0
  9. package/dist/applyOptionsChain.js +58 -0
  10. package/dist/babel.d.ts +3 -0
  11. package/dist/babel.js +136 -0
  12. package/dist/chainId.d.ts +244 -0
  13. package/dist/chainId.js +196 -0
  14. package/dist/cjs/cli/alias.js +12 -4
  15. package/dist/cjs/cli/applyOptionsChain.js +3 -1
  16. package/dist/cjs/cli/babel.js +6 -2
  17. package/dist/cjs/cli/commands.js +12 -4
  18. package/dist/cjs/cli/common.js +9 -3
  19. package/dist/cjs/cli/constants/chainId.js +3 -1
  20. package/dist/cjs/cli/constants/index.js +93 -31
  21. package/dist/cjs/cli/ensure.js +6 -2
  22. package/dist/cjs/cli/fs.js +6 -2
  23. package/dist/cjs/cli/get/config.js +3 -1
  24. package/dist/cjs/cli/get/data.js +24 -8
  25. package/dist/cjs/cli/get/index.js +6 -2
  26. package/dist/cjs/cli/is/config.js +18 -6
  27. package/dist/cjs/cli/is/env.js +18 -6
  28. package/dist/cjs/cli/is/platform.js +6 -2
  29. package/dist/cjs/cli/is/project.js +21 -7
  30. package/dist/cjs/cli/is/type.js +27 -9
  31. package/dist/cjs/cli/logger.js +6 -2
  32. package/dist/cjs/cli/monorepo.js +21 -7
  33. package/dist/cjs/cli/package.js +12 -4
  34. package/dist/cjs/cli/path.js +39 -13
  35. package/dist/cjs/cli/pathSerializer.js +12 -4
  36. package/dist/cjs/cli/port.js +3 -1
  37. package/dist/cjs/cli/prettyInstructions.js +6 -2
  38. package/dist/cjs/cli/print.js +3 -1
  39. package/dist/cjs/cli/require.js +18 -6
  40. package/dist/cjs/cli/routes.js +3 -1
  41. package/dist/cjs/cli/runtimeExports.js +3 -1
  42. package/dist/cjs/cli/test.js +3 -1
  43. package/dist/cjs/cli/watch.js +6 -2
  44. package/dist/cjs/compiled.js +99 -33
  45. package/dist/cjs/import.js +6 -2
  46. package/dist/cjs/runtime/nestedRoutes.js +6 -2
  47. package/dist/cjs/runtime-browser/parsed.js +8 -2
  48. package/dist/cjs/runtime-node/index.js +9 -3
  49. package/dist/cjs/runtime-node/serialize.js +3 -1
  50. package/dist/cjs/runtime-node/storage.js +3 -1
  51. package/dist/cjs/universal/constants.js +6 -2
  52. package/dist/cjs/universal/formatWebpack.js +3 -1
  53. package/dist/cjs/universal/pluginDagSort.js +3 -1
  54. package/dist/clearConsole.d.ts +1 -0
  55. package/dist/clearConsole.js +31 -0
  56. package/dist/commands.d.ts +4 -0
  57. package/dist/commands.js +48 -0
  58. package/dist/compatRequire.d.ts +13 -0
  59. package/dist/compatRequire.js +82 -0
  60. package/dist/compiled.d.ts +43 -0
  61. package/dist/compiled.js +142 -0
  62. package/dist/constants.d.ts +244 -0
  63. package/dist/constants.js +320 -0
  64. package/dist/debug.d.ts +6 -0
  65. package/dist/debug.js +28 -0
  66. package/dist/emptyDir.d.ts +1 -0
  67. package/dist/emptyDir.js +52 -0
  68. package/dist/ensureAbsolutePath.d.ts +7 -0
  69. package/dist/ensureAbsolutePath.js +38 -0
  70. package/dist/ensureArray.d.ts +1 -0
  71. package/dist/ensureArray.js +32 -0
  72. package/dist/esm/runtime-browser/parsed.js +5 -1
  73. package/dist/findExists.d.ts +6 -0
  74. package/dist/findExists.js +45 -0
  75. package/dist/generateMetaTags.d.ts +16 -0
  76. package/dist/generateMetaTags.js +61 -0
  77. package/dist/getBrowserslist.d.ts +2 -0
  78. package/dist/getBrowserslist.js +31 -0
  79. package/dist/getCoreJsVersion.d.ts +1 -0
  80. package/dist/getCoreJsVersion.js +46 -0
  81. package/dist/getEntryOptions.d.ts +1 -0
  82. package/dist/getEntryOptions.js +54 -0
  83. package/dist/getPackageManager.d.ts +1 -0
  84. package/dist/getPackageManager.js +87 -0
  85. package/dist/getPort.d.ts +14 -0
  86. package/dist/getPort.js +112 -0
  87. package/dist/getServerConfig.d.ts +1 -0
  88. package/dist/getServerConfig.js +67 -0
  89. package/dist/getTargetDir.d.ts +1 -0
  90. package/dist/getTargetDir.js +41 -0
  91. package/dist/import.d.ts +5 -0
  92. package/dist/import.js +33 -0
  93. package/dist/index.d.ts +44 -0
  94. package/dist/index.js +60 -0
  95. package/dist/is/index.d.ts +58 -0
  96. package/dist/is/index.js +114 -0
  97. package/dist/is/nodeEnv.d.ts +8 -0
  98. package/dist/is/nodeEnv.js +39 -0
  99. package/dist/is/platform.d.ts +2 -0
  100. package/dist/is/platform.js +30 -0
  101. package/dist/is/type.d.ts +8 -0
  102. package/dist/is/type.js +64 -0
  103. package/dist/logger.d.ts +65 -0
  104. package/dist/logger.js +145 -0
  105. package/dist/monorepo.d.ts +11 -0
  106. package/dist/monorepo.js +137 -0
  107. package/dist/nodeEnv.d.ts +3 -0
  108. package/dist/nodeEnv.js +81 -0
  109. package/dist/path.d.ts +18 -0
  110. package/dist/path.js +92 -0
  111. package/dist/pathSerializer.d.ts +16 -0
  112. package/dist/pathSerializer.js +76 -0
  113. package/dist/plugin.d.ts +2 -0
  114. package/dist/plugin.js +46 -0
  115. package/dist/prettyInstructions.d.ts +9 -0
  116. package/dist/prettyInstructions.js +112 -0
  117. package/dist/printBuildError.d.ts +8 -0
  118. package/dist/printBuildError.js +57 -0
  119. package/dist/react.d.ts +1 -0
  120. package/dist/react.js +64 -0
  121. package/dist/readTsConfig.d.ts +2 -0
  122. package/dist/readTsConfig.js +47 -0
  123. package/dist/removeSlash.d.ts +3 -0
  124. package/dist/removeSlash.js +33 -0
  125. package/dist/resolve.d.ts +13 -0
  126. package/dist/resolve.js +63 -0
  127. package/dist/routes.d.ts +2 -0
  128. package/dist/routes.js +58 -0
  129. package/dist/runtimeExports.d.ts +4 -0
  130. package/dist/runtimeExports.js +73 -0
  131. package/dist/ssr.d.ts +8 -0
  132. package/dist/ssr.js +30 -0
  133. package/dist/storage.d.ts +5 -0
  134. package/dist/storage.js +75 -0
  135. package/dist/testUtils.d.ts +5 -0
  136. package/dist/testUtils.js +38 -0
  137. package/dist/types.d.ts +1 -0
  138. package/dist/types.js +15 -0
  139. package/dist/universal/constants.d.ts +9 -0
  140. package/dist/universal/constants.js +30 -0
  141. package/dist/universal/formatWebpack.d.ts +13 -0
  142. package/dist/universal/formatWebpack.js +100 -0
  143. package/dist/universal/nestedRoutes.d.ts +8 -0
  144. package/dist/universal/nestedRoutes.js +131 -0
  145. package/dist/universal/remixRouter.d.ts +1 -0
  146. package/dist/universal/remixRouter.js +17 -0
  147. package/dist/universal/serialize.d.ts +1 -0
  148. package/dist/universal/serialize.js +40 -0
  149. package/dist/version.d.ts +2 -0
  150. package/dist/version.js +92 -0
  151. package/dist/wait.d.ts +2 -0
  152. package/dist/wait.js +29 -0
  153. package/dist/watch.d.ts +8 -0
  154. package/dist/watch.js +90 -0
  155. package/package.json +5 -5
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- findExists: () => findExists,
14
- emptyDir: () => emptyDir
13
+ findExists: function() {
14
+ return findExists;
15
+ },
16
+ emptyDir: function() {
17
+ return emptyDir;
18
+ }
15
19
  });
16
20
  const _compiled = require("../compiled");
17
21
  const findExists = (files) => {
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getEntryOptions", {
6
6
  enumerable: true,
7
- get: () => getEntryOptions
7
+ get: function() {
8
+ return getEntryOptions;
9
+ }
8
10
  });
9
11
  const _is = require("../is");
10
12
  const _constants = require("../constants");
@@ -10,14 +10,30 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getPackageManager: () => getPackageManager,
14
- getCoreJsVersion: () => getCoreJsVersion,
15
- getAntdMajorVersion: () => getAntdMajorVersion,
16
- defaults: () => defaults,
17
- getBrowserslist: () => getBrowserslist,
18
- getInternalPlugins: () => getInternalPlugins,
19
- readTsConfig: () => readTsConfig,
20
- readTsConfigByFile: () => readTsConfigByFile
13
+ getPackageManager: function() {
14
+ return getPackageManager;
15
+ },
16
+ getCoreJsVersion: function() {
17
+ return getCoreJsVersion;
18
+ },
19
+ getAntdMajorVersion: function() {
20
+ return getAntdMajorVersion;
21
+ },
22
+ defaults: function() {
23
+ return defaults;
24
+ },
25
+ getBrowserslist: function() {
26
+ return getBrowserslist;
27
+ },
28
+ getInternalPlugins: function() {
29
+ return getInternalPlugins;
30
+ },
31
+ readTsConfig: function() {
32
+ return readTsConfig;
33
+ },
34
+ readTsConfigByFile: function() {
35
+ return readTsConfigByFile;
36
+ }
21
37
  });
22
38
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
23
39
  const _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getServerConfig: () => getServerConfig,
14
- getTargetDir: () => getTargetDir
13
+ getServerConfig: function() {
14
+ return getServerConfig;
15
+ },
16
+ getTargetDir: function() {
17
+ return getTargetDir;
18
+ }
15
19
  });
16
20
  const _export_star = require("@swc/helpers/_/_export_star");
17
21
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
@@ -10,12 +10,24 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isSSR: () => isSSR,
14
- isUseSSRBundle: () => isUseSSRBundle,
15
- isServiceWorker: () => isServiceWorker,
16
- isRouterV5: () => isRouterV5,
17
- isSSGEntry: () => isSSGEntry,
18
- isSingleEntry: () => isSingleEntry
13
+ isSSR: function() {
14
+ return isSSR;
15
+ },
16
+ isUseSSRBundle: function() {
17
+ return isUseSSRBundle;
18
+ },
19
+ isServiceWorker: function() {
20
+ return isServiceWorker;
21
+ },
22
+ isRouterV5: function() {
23
+ return isRouterV5;
24
+ },
25
+ isSSGEntry: function() {
26
+ return isSSGEntry;
27
+ },
28
+ isSingleEntry: function() {
29
+ return isSingleEntry;
30
+ }
19
31
  });
20
32
  const _type = require("./type");
21
33
  const isSSR = (config) => {
@@ -10,12 +10,24 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getNodeEnv: () => getNodeEnv,
14
- isDev: () => isDev,
15
- isProd: () => isProd,
16
- isTest: () => isTest,
17
- isProdProfile: () => isProdProfile,
18
- isFastRefresh: () => isFastRefresh
13
+ getNodeEnv: function() {
14
+ return getNodeEnv;
15
+ },
16
+ isDev: function() {
17
+ return isDev;
18
+ },
19
+ isProd: function() {
20
+ return isProd;
21
+ },
22
+ isTest: function() {
23
+ return isTest;
24
+ },
25
+ isProdProfile: function() {
26
+ return isProdProfile;
27
+ },
28
+ isFastRefresh: function() {
29
+ return isFastRefresh;
30
+ }
19
31
  });
20
32
  const getNodeEnv = () => process.env.NODE_ENV || "development";
21
33
  const isDev = () => getNodeEnv() === "development";
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isNodeJS: () => isNodeJS,
14
- isBrowser: () => isBrowser
13
+ isNodeJS: function() {
14
+ return isNodeJS;
15
+ },
16
+ isBrowser: function() {
17
+ return isBrowser;
18
+ }
15
19
  });
16
20
  const isNodeJS = () => typeof process !== "undefined" && process.versions != null && process.versions.node != null && process.versions.electron == null;
17
21
  const isBrowser = () => typeof window !== "undefined";
@@ -10,13 +10,27 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isDepExists: () => isDepExists,
14
- isPackageInstalled: () => isPackageInstalled,
15
- isApiOnly: () => isApiOnly,
16
- isWebOnly: () => isWebOnly,
17
- isBeyondReact17: () => isBeyondReact17,
18
- isReact18: () => isReact18,
19
- isTypescript: () => isTypescript
13
+ isDepExists: function() {
14
+ return isDepExists;
15
+ },
16
+ isPackageInstalled: function() {
17
+ return isPackageInstalled;
18
+ },
19
+ isApiOnly: function() {
20
+ return isApiOnly;
21
+ },
22
+ isWebOnly: function() {
23
+ return isWebOnly;
24
+ },
25
+ isBeyondReact17: function() {
26
+ return isBeyondReact17;
27
+ },
28
+ isReact18: function() {
29
+ return isReact18;
30
+ },
31
+ isTypescript: function() {
32
+ return isTypescript;
33
+ }
20
34
  });
21
35
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
22
36
  const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -10,15 +10,33 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isString: () => isString,
14
- isUndefined: () => isUndefined,
15
- isArray: () => isArray,
16
- isFunction: () => isFunction,
17
- isObject: () => isObject,
18
- isPlainObject: () => isPlainObject,
19
- isPromise: () => isPromise,
20
- isRegExp: () => isRegExp,
21
- isEmpty: () => isEmpty
13
+ isString: function() {
14
+ return isString;
15
+ },
16
+ isUndefined: function() {
17
+ return isUndefined;
18
+ },
19
+ isArray: function() {
20
+ return isArray;
21
+ },
22
+ isFunction: function() {
23
+ return isFunction;
24
+ },
25
+ isObject: function() {
26
+ return isObject;
27
+ },
28
+ isPlainObject: function() {
29
+ return isPlainObject;
30
+ },
31
+ isPromise: function() {
32
+ return isPromise;
33
+ },
34
+ isRegExp: function() {
35
+ return isRegExp;
36
+ },
37
+ isEmpty: function() {
38
+ return isEmpty;
39
+ }
22
40
  });
23
41
  function isString(str) {
24
42
  return typeof str === "string";
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- Logger: () => Logger,
14
- logger: () => logger
13
+ Logger: function() {
14
+ return Logger;
15
+ },
16
+ logger: function() {
17
+ return logger;
18
+ }
15
19
  });
16
20
  const _define_property = require("@swc/helpers/_/_define_property");
17
21
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
@@ -10,13 +10,27 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isLerna: () => isLerna,
14
- isYarnWorkspaces: () => isYarnWorkspaces,
15
- isPnpmWorkspaces: () => isPnpmWorkspaces,
16
- isMonorepo: () => isMonorepo,
17
- isModernjsMonorepo: () => isModernjsMonorepo,
18
- findMonorepoRoot: () => findMonorepoRoot,
19
- getMonorepoPackages: () => getMonorepoPackages
13
+ isLerna: function() {
14
+ return isLerna;
15
+ },
16
+ isYarnWorkspaces: function() {
17
+ return isYarnWorkspaces;
18
+ },
19
+ isPnpmWorkspaces: function() {
20
+ return isPnpmWorkspaces;
21
+ },
22
+ isMonorepo: function() {
23
+ return isMonorepo;
24
+ },
25
+ isModernjsMonorepo: function() {
26
+ return isModernjsMonorepo;
27
+ },
28
+ findMonorepoRoot: function() {
29
+ return findMonorepoRoot;
30
+ },
31
+ getMonorepoPackages: function() {
32
+ return getMonorepoPackages;
33
+ }
20
34
  });
21
35
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
22
36
  const _fs = /* @__PURE__ */ _interop_require_default._(require("fs"));
@@ -10,10 +10,18 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getPnpmVersion: () => getPnpmVersion,
14
- canUseNpm: () => canUseNpm,
15
- canUseYarn: () => canUseYarn,
16
- canUsePnpm: () => canUsePnpm
13
+ getPnpmVersion: function() {
14
+ return getPnpmVersion;
15
+ },
16
+ canUseNpm: function() {
17
+ return canUseNpm;
18
+ },
19
+ canUseYarn: function() {
20
+ return canUseYarn;
21
+ },
22
+ canUsePnpm: function() {
23
+ return canUsePnpm;
24
+ }
17
25
  });
18
26
  const _compiled = require("../compiled");
19
27
  async function getPnpmVersion() {
@@ -10,19 +10,45 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- isPathString: () => isPathString,
14
- isRelativePath: () => isRelativePath,
15
- normalizeOutputPath: () => normalizeOutputPath,
16
- normalizeToPosixPath: () => normalizeToPosixPath,
17
- getTemplatePath: () => getTemplatePath,
18
- compilePathMatcherRegExp: () => compilePathMatcherRegExp,
19
- _joinPathParts: () => _joinPathParts,
20
- upwardPaths: () => upwardPaths,
21
- getRealTemporaryDirectory: () => getRealTemporaryDirectory,
22
- splitPathString: () => splitPathString,
23
- removeLeadingSlash: () => removeLeadingSlash,
24
- removeTailSlash: () => removeTailSlash,
25
- removeSlash: () => removeSlash
13
+ isPathString: function() {
14
+ return isPathString;
15
+ },
16
+ isRelativePath: function() {
17
+ return isRelativePath;
18
+ },
19
+ normalizeOutputPath: function() {
20
+ return normalizeOutputPath;
21
+ },
22
+ normalizeToPosixPath: function() {
23
+ return normalizeToPosixPath;
24
+ },
25
+ getTemplatePath: function() {
26
+ return getTemplatePath;
27
+ },
28
+ compilePathMatcherRegExp: function() {
29
+ return compilePathMatcherRegExp;
30
+ },
31
+ _joinPathParts: function() {
32
+ return _joinPathParts;
33
+ },
34
+ upwardPaths: function() {
35
+ return upwardPaths;
36
+ },
37
+ getRealTemporaryDirectory: function() {
38
+ return getRealTemporaryDirectory;
39
+ },
40
+ splitPathString: function() {
41
+ return splitPathString;
42
+ },
43
+ removeLeadingSlash: function() {
44
+ return removeLeadingSlash;
45
+ },
46
+ removeTailSlash: function() {
47
+ return removeTailSlash;
48
+ },
49
+ removeSlash: function() {
50
+ return removeSlash;
51
+ }
26
52
  });
27
53
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
28
54
  const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -10,10 +10,18 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- matchUpwardPathsAsUnknown: () => matchUpwardPathsAsUnknown,
14
- applyPathMatcher: () => applyPathMatcher,
15
- applyMatcherReplacement: () => applyMatcherReplacement,
16
- createDefaultPathMatchers: () => createDefaultPathMatchers
13
+ matchUpwardPathsAsUnknown: function() {
14
+ return matchUpwardPathsAsUnknown;
15
+ },
16
+ applyPathMatcher: function() {
17
+ return applyPathMatcher;
18
+ },
19
+ applyMatcherReplacement: function() {
20
+ return applyMatcherReplacement;
21
+ },
22
+ createDefaultPathMatchers: function() {
23
+ return createDefaultPathMatchers;
24
+ }
17
25
  });
18
26
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
19
27
  const _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getPort", {
6
6
  enumerable: true,
7
- get: () => getPort
7
+ get: function() {
8
+ return getPort;
9
+ }
8
10
  });
9
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
10
12
  const _net = /* @__PURE__ */ _interop_require_default._(require("net"));
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- getAddressUrls: () => getAddressUrls,
14
- prettyInstructions: () => prettyInstructions
13
+ getAddressUrls: function() {
14
+ return getAddressUrls;
15
+ },
16
+ prettyInstructions: function() {
17
+ return prettyInstructions;
18
+ }
15
19
  });
16
20
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
17
21
  const _os = /* @__PURE__ */ _interop_require_default._(require("os"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "printBuildError", {
6
6
  enumerable: true,
7
- get: () => printBuildError
7
+ get: function() {
8
+ return printBuildError;
9
+ }
8
10
  });
9
11
  const _compiled = require("../compiled");
10
12
  const _logger = require("./logger");
@@ -10,12 +10,24 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- compatRequire: () => compatRequire,
14
- dynamicImport: () => dynamicImport,
15
- requireExistModule: () => requireExistModule,
16
- cleanRequireCache: () => cleanRequireCache,
17
- deleteRequireCache: () => deleteRequireCache,
18
- tryResolve: () => tryResolve
13
+ compatRequire: function() {
14
+ return compatRequire;
15
+ },
16
+ dynamicImport: function() {
17
+ return dynamicImport;
18
+ },
19
+ requireExistModule: function() {
20
+ return requireExistModule;
21
+ },
22
+ cleanRequireCache: function() {
23
+ return cleanRequireCache;
24
+ },
25
+ deleteRequireCache: function() {
26
+ return deleteRequireCache;
27
+ },
28
+ tryResolve: function() {
29
+ return tryResolve;
30
+ }
19
31
  });
20
32
  const _fs = require("./fs");
21
33
  const compatRequire = (filePath, interop = true) => {
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "getRouteId", {
6
6
  enumerable: true,
7
- get: () => getRouteId
7
+ get: function() {
8
+ return getRouteId;
9
+ }
8
10
  });
9
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
10
12
  const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "createRuntimeExportsUtils", {
6
6
  enumerable: true,
7
- get: () => createRuntimeExportsUtils
7
+ get: function() {
8
+ return createRuntimeExportsUtils;
9
+ }
8
10
  });
9
11
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
10
12
  const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  });
5
5
  Object.defineProperty(exports, "initSnapshotSerializer", {
6
6
  enumerable: true,
7
- get: () => initSnapshotSerializer
7
+ get: function() {
8
+ return initSnapshotSerializer;
9
+ }
8
10
  });
9
11
  const initSnapshotSerializer = (root) => {
10
12
  expect.addSnapshotSerializer({
@@ -10,8 +10,12 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- WatchChangeType: () => WatchChangeType,
14
- watch: () => watch
13
+ WatchChangeType: function() {
14
+ return WatchChangeType;
15
+ },
16
+ watch: function() {
17
+ return watch;
18
+ }
15
19
  });
16
20
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
17
21
  const _path = /* @__PURE__ */ _interop_require_default._(require("path"));
@@ -10,39 +10,105 @@ function _export(target, all) {
10
10
  });
11
11
  }
12
12
  _export(exports, {
13
- fs: () => _fsextra.default,
14
- ora: () => _ora.default,
15
- glob: () => _glob.default,
16
- yaml: () => _jsyaml.default,
17
- chalk: () => _chalk.default,
18
- debug: () => _debug.default,
19
- slash: () => _slash.default,
20
- execa: () => _execa.default,
21
- json5: () => _json5.default,
22
- upath: () => _upath.default,
23
- pkgUp: () => _pkgup.default,
24
- nanoid: () => _nanoid.nanoid,
25
- semver: () => _semver.default,
26
- dotenv: () => _dotenv.default,
27
- lodash: () => _lodash.default,
28
- globby: () => _globby.default,
29
- address: () => _address.default,
30
- signale: () => _signale.default,
31
- urlJoin: () => _urljoin.default,
32
- minimist: () => _minimist.default,
33
- fastGlob: () => _fastglob.default,
34
- filesize: () => _filesize.default,
35
- gzipSize: () => _gzipsize.default,
36
- stripAnsi: () => _stripansi.default,
37
- dotenvExpand: () => _dotenvexpand.default,
38
- browserslist: () => _browserslist.default,
39
- recursiveReaddir: () => _recursivereaddir.default,
40
- program: () => _commander.program,
41
- Command: () => _commander.Command,
42
- Signale: () => _signale.Signale,
43
- mime: () => mime,
44
- chokidar: () => chokidar,
45
- inquirer: () => inquirer
13
+ fs: function() {
14
+ return _fsextra.default;
15
+ },
16
+ ora: function() {
17
+ return _ora.default;
18
+ },
19
+ glob: function() {
20
+ return _glob.default;
21
+ },
22
+ yaml: function() {
23
+ return _jsyaml.default;
24
+ },
25
+ chalk: function() {
26
+ return _chalk.default;
27
+ },
28
+ debug: function() {
29
+ return _debug.default;
30
+ },
31
+ slash: function() {
32
+ return _slash.default;
33
+ },
34
+ execa: function() {
35
+ return _execa.default;
36
+ },
37
+ json5: function() {
38
+ return _json5.default;
39
+ },
40
+ upath: function() {
41
+ return _upath.default;
42
+ },
43
+ pkgUp: function() {
44
+ return _pkgup.default;
45
+ },
46
+ nanoid: function() {
47
+ return _nanoid.nanoid;
48
+ },
49
+ semver: function() {
50
+ return _semver.default;
51
+ },
52
+ dotenv: function() {
53
+ return _dotenv.default;
54
+ },
55
+ lodash: function() {
56
+ return _lodash.default;
57
+ },
58
+ globby: function() {
59
+ return _globby.default;
60
+ },
61
+ address: function() {
62
+ return _address.default;
63
+ },
64
+ signale: function() {
65
+ return _signale.default;
66
+ },
67
+ urlJoin: function() {
68
+ return _urljoin.default;
69
+ },
70
+ minimist: function() {
71
+ return _minimist.default;
72
+ },
73
+ fastGlob: function() {
74
+ return _fastglob.default;
75
+ },
76
+ filesize: function() {
77
+ return _filesize.default;
78
+ },
79
+ gzipSize: function() {
80
+ return _gzipsize.default;
81
+ },
82
+ stripAnsi: function() {
83
+ return _stripansi.default;
84
+ },
85
+ dotenvExpand: function() {
86
+ return _dotenvexpand.default;
87
+ },
88
+ browserslist: function() {
89
+ return _browserslist.default;
90
+ },
91
+ recursiveReaddir: function() {
92
+ return _recursivereaddir.default;
93
+ },
94
+ program: function() {
95
+ return _commander.program;
96
+ },
97
+ Command: function() {
98
+ return _commander.Command;
99
+ },
100
+ Signale: function() {
101
+ return _signale.Signale;
102
+ },
103
+ mime: function() {
104
+ return mime;
105
+ },
106
+ chokidar: function() {
107
+ return chokidar;
108
+ },
109
+ inquirer: function() {
110
+ return inquirer;
111
+ }
46
112
  });
47
113
  const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
48
114
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");