@rslib/core 0.11.0 → 0.11.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/dist/index.js CHANGED
@@ -1692,8 +1692,7 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson })=>{
1692
1692
  type: 'modern-module'
1693
1693
  },
1694
1694
  chunkLoading: 'import',
1695
- workerChunkLoading: 'import',
1696
- wasmLoading: 'fetch'
1695
+ workerChunkLoading: 'import'
1697
1696
  },
1698
1697
  experiments: {
1699
1698
  outputModule: true
@@ -1722,8 +1721,7 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson })=>{
1722
1721
  type: 'commonjs-static'
1723
1722
  },
1724
1723
  chunkLoading: 'require',
1725
- workerChunkLoading: 'async-node',
1726
- wasmLoading: 'async-node'
1724
+ workerChunkLoading: 'async-node'
1727
1725
  },
1728
1726
  plugins
1729
1727
  }
@@ -1764,6 +1762,15 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson })=>{
1764
1762
  {
1765
1763
  if (false === bundle) throw new Error('When using "iife" format, "bundle" must be set to "true". Since the default value for "bundle" is "true", so you can either explicitly set it to "true" or remove the field entirely.');
1766
1764
  const config = {
1765
+ output: {
1766
+ minify: {
1767
+ jsOptions: {
1768
+ minimizerOptions: {
1769
+ module: true
1770
+ }
1771
+ }
1772
+ }
1773
+ },
1767
1774
  tools: {
1768
1775
  rspack: {
1769
1776
  module: {
@@ -2172,6 +2179,7 @@ const composeDtsConfig = async (libConfig, format, dtsExtension)=>{
2172
2179
  abortOnError: dts?.abortOnError,
2173
2180
  dtsExtension: dts?.autoExtension ? dtsExtension : '.d.ts',
2174
2181
  autoExternal: getAutoExternalDefaultValue(format, autoExternal),
2182
+ alias: dts?.alias,
2175
2183
  banner: banner?.dts,
2176
2184
  footer: footer?.dts,
2177
2185
  redirect: redirect?.dts
@@ -2996,7 +3004,7 @@ const applyCommonOptions = (cli)=>{
2996
3004
  function runCli() {
2997
3005
  const cli = dist('rslib');
2998
3006
  cli.help();
2999
- cli.version("0.11.0");
3007
+ cli.version("0.11.1");
3000
3008
  applyCommonOptions(cli);
3001
3009
  const buildCommand = cli.command('build', 'build the library for production');
3002
3010
  const inspectCommand = cli.command('inspect', 'inspect the Rsbuild / Rspack configs of Rslib projects');
@@ -3067,8 +3075,8 @@ function prepareCli() {
3067
3075
  initNodeEnv();
3068
3076
  const { npm_execpath } = process.env;
3069
3077
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) console.log();
3070
- logger.greet(` Rslib v0.11.0\n`);
3078
+ logger.greet(` Rslib v0.11.1\n`);
3071
3079
  }
3072
- const src_version = "0.11.0";
3080
+ const src_version = "0.11.1";
3073
3081
  var __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.rspack;
3074
3082
  export { build, defineConfig, inspect, loadConfig, logger, prepareCli, __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__ as rsbuild, runCli, startMFDevServer, composeCreateRsbuildConfig as unstable_composeCreateRsbuildConfig, src_version as version, __webpack_exports__rspack as rspack };
@@ -52,6 +52,12 @@ export type Dts = {
52
52
  * @see {@link https://rslib.rs/config/lib/dts#dtsautoextension}
53
53
  */
54
54
  autoExtension?: boolean;
55
+ /**
56
+ * Set the alias for declaration files, similar to the `compilerOptions.paths` option in `tsconfig.json`.
57
+ * @defaultValue `{}`
58
+ * @see {@link https://rslib.rs/config/lib/dts#dtsalias}
59
+ */
60
+ alias?: Record<string, string>;
55
61
  } | boolean;
56
62
  export type AutoExternal = boolean | {
57
63
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslib/core",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "The Rsbuild-based library development tool.",
5
5
  "homepage": "https://rslib.rs",
6
6
  "bugs": {
@@ -36,24 +36,24 @@
36
36
  "types.d.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "~1.4.8",
39
+ "@rsbuild/core": "~1.4.12",
40
40
  "tinyglobby": "^0.2.14",
41
- "rsbuild-plugin-dts": "0.11.0"
41
+ "rsbuild-plugin-dts": "0.11.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@module-federation/rsbuild-plugin": "^0.17.0",
44
+ "@module-federation/rsbuild-plugin": "^0.17.1",
45
45
  "@types/fs-extra": "^11.0.4",
46
46
  "cac": "^6.7.14",
47
47
  "chokidar": "^4.0.3",
48
48
  "fs-extra": "^11.3.0",
49
- "memfs": "^4.17.2",
49
+ "memfs": "^4.28.0",
50
50
  "picocolors": "1.1.1",
51
- "prebundle": "1.3.4",
51
+ "prebundle": "1.4.0",
52
52
  "rsbuild-plugin-publint": "^0.3.2",
53
- "rslib": "npm:@rslib/core@0.10.6",
53
+ "rslib": "npm:@rslib/core@0.11.0",
54
54
  "rslog": "^1.2.9",
55
55
  "tsconfck": "3.1.6",
56
- "typescript": "^5.8.3",
56
+ "typescript": "^5.9.2",
57
57
  "@rslib/tsconfig": "0.0.1"
58
58
  },
59
59
  "peerDependencies": {