@rslib/core 0.18.3 → 0.18.5
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/dist/index.js +13 -11
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1445,10 +1445,9 @@ function composePrintFileSizeConfig(bundle, target) {
|
|
|
1445
1445
|
performance: {
|
|
1446
1446
|
printFileSize: {
|
|
1447
1447
|
total: ({ environmentName, distPath, assets, totalSize, totalGzipSize })=>{
|
|
1448
|
-
let log = `${picocolors.yellow(assets.length)} files generated in ${picocolors.
|
|
1449
|
-
log += '\n';
|
|
1450
|
-
log += `${picocolors.magenta('Total size:')} ${(totalSize / 1000).toFixed(1)} kB`;
|
|
1448
|
+
let log = `${picocolors.yellow(assets.length)} files generated in ${picocolors.cyan(distPath)}, ${picocolors.magenta('total:')} ${(totalSize / 1000).toFixed(1)} kB`;
|
|
1451
1449
|
if ('web' === target) log += ` ${picocolors.green(`(${(totalGzipSize / 1000).toFixed(1)} kB gzipped)`)}`;
|
|
1450
|
+
log += ` ${picocolors.dim(`(${environmentName})`)}`;
|
|
1452
1451
|
return log;
|
|
1453
1452
|
},
|
|
1454
1453
|
detail: false
|
|
@@ -1644,9 +1643,7 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson, enabledS
|
|
|
1644
1643
|
},
|
|
1645
1644
|
optimization: {
|
|
1646
1645
|
nodeEnv: process.env.NODE_ENV,
|
|
1647
|
-
splitChunks:
|
|
1648
|
-
chunks: 'async'
|
|
1649
|
-
}
|
|
1646
|
+
splitChunks: false
|
|
1650
1647
|
},
|
|
1651
1648
|
plugins
|
|
1652
1649
|
}
|
|
@@ -1685,7 +1682,8 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson, enabledS
|
|
|
1685
1682
|
}
|
|
1686
1683
|
},
|
|
1687
1684
|
optimization: {
|
|
1688
|
-
nodeEnv: process.env.NODE_ENV
|
|
1685
|
+
nodeEnv: process.env.NODE_ENV,
|
|
1686
|
+
splitChunks: false
|
|
1689
1687
|
},
|
|
1690
1688
|
plugins
|
|
1691
1689
|
}
|
|
@@ -2012,7 +2010,11 @@ const composeEntryConfig = async (rawEntry, bundle, root, cssModulesAuto, userOu
|
|
|
2012
2010
|
const globEntryFiles = await glob(entryFiles, {
|
|
2013
2011
|
cwd: root,
|
|
2014
2012
|
absolute: true,
|
|
2015
|
-
dot: true
|
|
2013
|
+
dot: true,
|
|
2014
|
+
ignore: [
|
|
2015
|
+
'**/.DS_Store',
|
|
2016
|
+
'**/Thumbs.db'
|
|
2017
|
+
]
|
|
2016
2018
|
});
|
|
2017
2019
|
const resolvedEntryFiles = globEntryFiles.filter((i)=>!DTS_EXTENSIONS_PATTERN.test(i));
|
|
2018
2020
|
if (0 === resolvedEntryFiles.length) {
|
|
@@ -3088,7 +3090,7 @@ const applyCommonOptions = (cli)=>{
|
|
|
3088
3090
|
};
|
|
3089
3091
|
function runCli() {
|
|
3090
3092
|
const cli = dist('rslib');
|
|
3091
|
-
cli.version("0.18.
|
|
3093
|
+
cli.version("0.18.5");
|
|
3092
3094
|
applyCommonOptions(cli);
|
|
3093
3095
|
const buildDescription = `build the library for production ${picocolors.dim('(default if no command is given)')}`;
|
|
3094
3096
|
const buildCommand = cli.command('', buildDescription).alias('build');
|
|
@@ -3204,9 +3206,9 @@ function prepareCli() {
|
|
|
3204
3206
|
setupLogLevel();
|
|
3205
3207
|
const { npm_execpath } = process.env;
|
|
3206
3208
|
if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) logger.log();
|
|
3207
|
-
logger.greet(` Rslib v0.18.
|
|
3209
|
+
logger.greet(` Rslib v0.18.5\n`);
|
|
3208
3210
|
}
|
|
3209
|
-
const src_version = "0.18.
|
|
3211
|
+
const src_version = "0.18.5";
|
|
3210
3212
|
export * as rsbuild from "@rsbuild/core";
|
|
3211
3213
|
export { logger } from "../compiled/rslog/index.js";
|
|
3212
3214
|
export { rspack } from "@rsbuild/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rslib/core",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.5",
|
|
4
4
|
"description": "The Rsbuild-based library development tool.",
|
|
5
5
|
"homepage": "https://rslib.rs",
|
|
6
6
|
"bugs": {
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"types.d.ts"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@rsbuild/core": "~1.
|
|
40
|
-
"rsbuild-plugin-dts": "0.18.
|
|
39
|
+
"@rsbuild/core": "~1.7.0-beta.0",
|
|
40
|
+
"rsbuild-plugin-dts": "0.18.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@module-federation/rsbuild-plugin": "^0.21.6",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"picocolors": "1.1.1",
|
|
51
51
|
"prebundle": "1.6.0",
|
|
52
52
|
"rsbuild-plugin-publint": "^0.3.3",
|
|
53
|
-
"rslib": "npm:@rslib/core@0.18.
|
|
53
|
+
"rslib": "npm:@rslib/core@0.18.4",
|
|
54
54
|
"rslog": "^1.3.2",
|
|
55
55
|
"tinyglobby": "0.2.14",
|
|
56
56
|
"tsconfck": "3.1.6",
|