@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.
- package/CHANGELOG.md +11 -0
- package/dist/FileSizeReporter.d.ts +16 -0
- package/dist/FileSizeReporter.js +162 -0
- package/dist/alias.d.ts +25 -0
- package/dist/alias.js +108 -0
- package/dist/analyzeProject.d.ts +2 -0
- package/dist/analyzeProject.js +71 -0
- package/dist/applyOptionsChain.d.ts +3 -0
- package/dist/applyOptionsChain.js +58 -0
- package/dist/babel.d.ts +3 -0
- package/dist/babel.js +136 -0
- package/dist/chainId.d.ts +244 -0
- package/dist/chainId.js +196 -0
- package/dist/cjs/cli/alias.js +12 -4
- package/dist/cjs/cli/applyOptionsChain.js +3 -1
- package/dist/cjs/cli/babel.js +6 -2
- package/dist/cjs/cli/commands.js +12 -4
- package/dist/cjs/cli/common.js +9 -3
- package/dist/cjs/cli/constants/chainId.js +3 -1
- package/dist/cjs/cli/constants/index.js +93 -31
- package/dist/cjs/cli/ensure.js +6 -2
- package/dist/cjs/cli/fs.js +6 -2
- package/dist/cjs/cli/get/config.js +3 -1
- package/dist/cjs/cli/get/data.js +24 -8
- package/dist/cjs/cli/get/index.js +6 -2
- package/dist/cjs/cli/is/config.js +18 -6
- package/dist/cjs/cli/is/env.js +18 -6
- package/dist/cjs/cli/is/platform.js +6 -2
- package/dist/cjs/cli/is/project.js +21 -7
- package/dist/cjs/cli/is/type.js +27 -9
- package/dist/cjs/cli/logger.js +6 -2
- package/dist/cjs/cli/monorepo.js +21 -7
- package/dist/cjs/cli/package.js +12 -4
- package/dist/cjs/cli/path.js +39 -13
- package/dist/cjs/cli/pathSerializer.js +12 -4
- package/dist/cjs/cli/port.js +3 -1
- package/dist/cjs/cli/prettyInstructions.js +6 -2
- package/dist/cjs/cli/print.js +3 -1
- package/dist/cjs/cli/require.js +18 -6
- package/dist/cjs/cli/routes.js +3 -1
- package/dist/cjs/cli/runtimeExports.js +3 -1
- package/dist/cjs/cli/test.js +3 -1
- package/dist/cjs/cli/watch.js +6 -2
- package/dist/cjs/compiled.js +99 -33
- package/dist/cjs/import.js +6 -2
- package/dist/cjs/runtime/nestedRoutes.js +6 -2
- package/dist/cjs/runtime-browser/parsed.js +8 -2
- package/dist/cjs/runtime-node/index.js +9 -3
- package/dist/cjs/runtime-node/serialize.js +3 -1
- package/dist/cjs/runtime-node/storage.js +3 -1
- package/dist/cjs/universal/constants.js +6 -2
- package/dist/cjs/universal/formatWebpack.js +3 -1
- package/dist/cjs/universal/pluginDagSort.js +3 -1
- package/dist/clearConsole.d.ts +1 -0
- package/dist/clearConsole.js +31 -0
- package/dist/commands.d.ts +4 -0
- package/dist/commands.js +48 -0
- package/dist/compatRequire.d.ts +13 -0
- package/dist/compatRequire.js +82 -0
- package/dist/compiled.d.ts +43 -0
- package/dist/compiled.js +142 -0
- package/dist/constants.d.ts +244 -0
- package/dist/constants.js +320 -0
- package/dist/debug.d.ts +6 -0
- package/dist/debug.js +28 -0
- package/dist/emptyDir.d.ts +1 -0
- package/dist/emptyDir.js +52 -0
- package/dist/ensureAbsolutePath.d.ts +7 -0
- package/dist/ensureAbsolutePath.js +38 -0
- package/dist/ensureArray.d.ts +1 -0
- package/dist/ensureArray.js +32 -0
- package/dist/esm/runtime-browser/parsed.js +5 -1
- package/dist/findExists.d.ts +6 -0
- package/dist/findExists.js +45 -0
- package/dist/generateMetaTags.d.ts +16 -0
- package/dist/generateMetaTags.js +61 -0
- package/dist/getBrowserslist.d.ts +2 -0
- package/dist/getBrowserslist.js +31 -0
- package/dist/getCoreJsVersion.d.ts +1 -0
- package/dist/getCoreJsVersion.js +46 -0
- package/dist/getEntryOptions.d.ts +1 -0
- package/dist/getEntryOptions.js +54 -0
- package/dist/getPackageManager.d.ts +1 -0
- package/dist/getPackageManager.js +87 -0
- package/dist/getPort.d.ts +14 -0
- package/dist/getPort.js +112 -0
- package/dist/getServerConfig.d.ts +1 -0
- package/dist/getServerConfig.js +67 -0
- package/dist/getTargetDir.d.ts +1 -0
- package/dist/getTargetDir.js +41 -0
- package/dist/import.d.ts +5 -0
- package/dist/import.js +33 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.js +60 -0
- package/dist/is/index.d.ts +58 -0
- package/dist/is/index.js +114 -0
- package/dist/is/nodeEnv.d.ts +8 -0
- package/dist/is/nodeEnv.js +39 -0
- package/dist/is/platform.d.ts +2 -0
- package/dist/is/platform.js +30 -0
- package/dist/is/type.d.ts +8 -0
- package/dist/is/type.js +64 -0
- package/dist/logger.d.ts +65 -0
- package/dist/logger.js +145 -0
- package/dist/monorepo.d.ts +11 -0
- package/dist/monorepo.js +137 -0
- package/dist/nodeEnv.d.ts +3 -0
- package/dist/nodeEnv.js +81 -0
- package/dist/path.d.ts +18 -0
- package/dist/path.js +92 -0
- package/dist/pathSerializer.d.ts +16 -0
- package/dist/pathSerializer.js +76 -0
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +46 -0
- package/dist/prettyInstructions.d.ts +9 -0
- package/dist/prettyInstructions.js +112 -0
- package/dist/printBuildError.d.ts +8 -0
- package/dist/printBuildError.js +57 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +64 -0
- package/dist/readTsConfig.d.ts +2 -0
- package/dist/readTsConfig.js +47 -0
- package/dist/removeSlash.d.ts +3 -0
- package/dist/removeSlash.js +33 -0
- package/dist/resolve.d.ts +13 -0
- package/dist/resolve.js +63 -0
- package/dist/routes.d.ts +2 -0
- package/dist/routes.js +58 -0
- package/dist/runtimeExports.d.ts +4 -0
- package/dist/runtimeExports.js +73 -0
- package/dist/ssr.d.ts +8 -0
- package/dist/ssr.js +30 -0
- package/dist/storage.d.ts +5 -0
- package/dist/storage.js +75 -0
- package/dist/testUtils.d.ts +5 -0
- package/dist/testUtils.js +38 -0
- package/dist/types.d.ts +1 -0
- package/dist/types.js +15 -0
- package/dist/universal/constants.d.ts +9 -0
- package/dist/universal/constants.js +30 -0
- package/dist/universal/formatWebpack.d.ts +13 -0
- package/dist/universal/formatWebpack.js +100 -0
- package/dist/universal/nestedRoutes.d.ts +8 -0
- package/dist/universal/nestedRoutes.js +131 -0
- package/dist/universal/remixRouter.d.ts +1 -0
- package/dist/universal/remixRouter.js +17 -0
- package/dist/universal/serialize.d.ts +1 -0
- package/dist/universal/serialize.js +40 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.js +92 -0
- package/dist/wait.d.ts +2 -0
- package/dist/wait.js +29 -0
- package/dist/watch.d.ts +8 -0
- package/dist/watch.js +90 -0
- package/package.json +5 -5
package/dist/cjs/cli/fs.js
CHANGED
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
findExists: ()
|
14
|
-
|
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: ()
|
7
|
+
get: function() {
|
8
|
+
return getEntryOptions;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const _is = require("../is");
|
10
12
|
const _constants = require("../constants");
|
package/dist/cjs/cli/get/data.js
CHANGED
@@ -10,14 +10,30 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
getPackageManager: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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: ()
|
14
|
-
|
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: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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) => {
|
package/dist/cjs/cli/is/env.js
CHANGED
@@ -10,12 +10,24 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
getNodeEnv: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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: ()
|
14
|
-
|
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: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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"));
|
package/dist/cjs/cli/is/type.js
CHANGED
@@ -10,15 +10,33 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
isString: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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";
|
package/dist/cjs/cli/logger.js
CHANGED
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
Logger: ()
|
14
|
-
|
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");
|
package/dist/cjs/cli/monorepo.js
CHANGED
@@ -10,13 +10,27 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
isLerna: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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"));
|
package/dist/cjs/cli/package.js
CHANGED
@@ -10,10 +10,18 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
getPnpmVersion: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
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() {
|
package/dist/cjs/cli/path.js
CHANGED
@@ -10,19 +10,45 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
isPathString: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
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: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
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"));
|
package/dist/cjs/cli/port.js
CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "getPort", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
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: ()
|
14
|
-
|
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"));
|
package/dist/cjs/cli/print.js
CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "printBuildError", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
7
|
+
get: function() {
|
8
|
+
return printBuildError;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const _compiled = require("../compiled");
|
10
12
|
const _logger = require("./logger");
|
package/dist/cjs/cli/require.js
CHANGED
@@ -10,12 +10,24 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
compatRequire: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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) => {
|
package/dist/cjs/cli/routes.js
CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "getRouteId", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
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: ()
|
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"));
|
package/dist/cjs/cli/test.js
CHANGED
@@ -4,7 +4,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
});
|
5
5
|
Object.defineProperty(exports, "initSnapshotSerializer", {
|
6
6
|
enumerable: true,
|
7
|
-
get: ()
|
7
|
+
get: function() {
|
8
|
+
return initSnapshotSerializer;
|
9
|
+
}
|
8
10
|
});
|
9
11
|
const initSnapshotSerializer = (root) => {
|
10
12
|
expect.addSnapshotSerializer({
|
package/dist/cjs/cli/watch.js
CHANGED
@@ -10,8 +10,12 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
WatchChangeType: ()
|
14
|
-
|
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"));
|
package/dist/cjs/compiled.js
CHANGED
@@ -10,39 +10,105 @@ function _export(target, all) {
|
|
10
10
|
});
|
11
11
|
}
|
12
12
|
_export(exports, {
|
13
|
-
fs: ()
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
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");
|