@rslib/core 0.18.6 → 0.19.1
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/bin/rslib.js +2 -8
- package/dist/800.js +1 -10
- package/dist/index.js +2928 -2822
- package/dist-types/cli/commands.d.ts +5 -5
- package/dist-types/cli/index.d.ts +1 -0
- package/dist-types/cli/{initConfig.d.ts → init.d.ts} +2 -6
- package/dist-types/config.d.ts +1 -19
- package/dist-types/constant.d.ts +0 -2
- package/dist-types/createRslib.d.ts +5 -0
- package/dist-types/index.d.ts +10 -9
- package/dist-types/loadConfig.d.ts +34 -0
- package/dist-types/mergeConfig.d.ts +15 -0
- package/dist-types/restart.d.ts +9 -0
- package/dist-types/types/config.d.ts +8 -9
- package/dist-types/types/index.d.ts +1 -0
- package/dist-types/types/rslib.d.ts +102 -0
- package/dist-types/utils/helper.d.ts +4 -1
- package/package.json +5 -5
- package/dist-types/cli/build.d.ts +0 -4
- package/dist-types/cli/inspect.d.ts +0 -4
- package/dist-types/cli/mf.d.ts +0 -4
- package/dist-types/cli/prepare.d.ts +0 -1
- package/dist-types/cli/restart.d.ts +0 -7
package/bin/rslib.js
CHANGED
|
@@ -13,14 +13,8 @@ if (enableCompileCache) {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
async function main() {
|
|
16
|
-
const {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
try {
|
|
20
|
-
runCli();
|
|
21
|
-
} catch (err) {
|
|
22
|
-
logger.error(err);
|
|
23
|
-
}
|
|
16
|
+
const { runCLI } = await import('../dist/index.js');
|
|
17
|
+
runCLI();
|
|
24
18
|
}
|
|
25
19
|
|
|
26
20
|
main();
|
package/dist/800.js
CHANGED
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import node_path, { basename, dirname, extname, isAbsolute, join } from "node:path";
|
|
2
|
-
const DEFAULT_CONFIG_NAME = 'rslib.config';
|
|
3
|
-
const DEFAULT_CONFIG_EXTENSIONS = [
|
|
4
|
-
'.js',
|
|
5
|
-
'.ts',
|
|
6
|
-
'.mjs',
|
|
7
|
-
'.mts',
|
|
8
|
-
'.cjs',
|
|
9
|
-
'.cts'
|
|
10
|
-
];
|
|
11
2
|
const SWC_HELPERS = '@swc/helpers';
|
|
12
3
|
const DTS_EXTENSIONS = [
|
|
13
4
|
'd.ts',
|
|
@@ -88,4 +79,4 @@ const BASE_URI = 'webpack://';
|
|
|
88
79
|
const AUTO_PUBLIC_PATH = '__mini_css_extract_plugin_public_path_auto__';
|
|
89
80
|
const ABSOLUTE_PUBLIC_PATH = `${BASE_URI}/mini-css-extract-plugin/`;
|
|
90
81
|
const SINGLE_DOT_PATH_SEGMENT = '__mini_css_extract_plugin_single_dot_path_segment__';
|
|
91
|
-
export { ABSOLUTE_PUBLIC_PATH, AUTO_PUBLIC_PATH, BASE_URI, CSS_EXTENSIONS_PATTERN,
|
|
82
|
+
export { ABSOLUTE_PUBLIC_PATH, AUTO_PUBLIC_PATH, BASE_URI, CSS_EXTENSIONS_PATTERN, DTS_EXTENSIONS_PATTERN, JS_EXTENSIONS_PATTERN, SINGLE_DOT_PATH_SEGMENT, SWC_HELPERS, basename, dirname, extname, getUndoPath, isAbsolute, isCssFile, isCssGlobalFile, isCssModulesFile, join, node_path };
|