@rslib/core 0.16.0 → 0.16.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.
Files changed (2) hide show
  1. package/dist/index.js +61 -76
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -732,94 +732,82 @@ const RSPACK_TARGET_UNLISTED_MODERN_ECMA_VERSIONS = [
732
732
  ];
733
733
  const ESX_TO_BROWSERSLIST = {
734
734
  es5: {
735
- chrome: '5.0.0',
736
- edge: '12.0.0',
737
- firefox: '2.0.0',
738
- ie: '9.0.0',
739
- ios: '6.0.0',
740
- node: '0.4.0',
741
- opera: '10.10.0',
742
- safari: '3.1.0'
735
+ chrome: '13',
736
+ edge: '12',
737
+ firefox: '2',
738
+ ios: '6',
739
+ node: '0.6',
740
+ safari: '5.1'
743
741
  },
744
- es6: {
745
- chrome: '51.0.0',
746
- edge: '15.0.0',
747
- firefox: '54.0.0',
748
- safari: '10.0.0',
749
- opera: '38.0.0',
750
- samsung: '5.0.0'
742
+ get es6 () {
743
+ return ESX_TO_BROWSERSLIST.es2015;
751
744
  },
752
745
  es2015: {
753
- chrome: '51.0.0',
754
- edge: '15.0.0',
755
- firefox: '54.0.0',
756
- safari: '10.0.0',
757
- opera: '38.0.0',
758
- samsung: '5.0.0'
746
+ chrome: '51',
747
+ edge: '79',
748
+ firefox: '53',
749
+ ios: '16.3',
750
+ node: '6.5',
751
+ safari: '16.3'
759
752
  },
760
753
  es2016: {
761
- chrome: '52.0.0',
762
- edge: '15.0.0',
763
- firefox: '54.0.0',
764
- safari: '10.3.0',
765
- opera: '39.0.0',
766
- samsung: '6.2.0'
754
+ chrome: '52',
755
+ edge: '79',
756
+ firefox: '53',
757
+ ios: '16.3',
758
+ node: '7',
759
+ safari: '16.3'
767
760
  },
768
761
  es2017: {
769
- chrome: '57.0.0',
770
- edge: '15.0.0',
771
- firefox: '54.0.0',
772
- safari: '11.0.0',
773
- opera: '44.0.0',
774
- samsung: '6.2.0'
762
+ chrome: '55',
763
+ edge: '79',
764
+ firefox: '53',
765
+ ios: '16.3',
766
+ node: '7.6',
767
+ safari: '16.3'
775
768
  },
776
769
  es2018: {
777
- chrome: '64.0.0',
778
- edge: '79.0.0',
779
- firefox: '78.0.0',
780
- safari: '16.4.0',
781
- opera: '51.0.0',
782
- samsung: '8.2.0'
770
+ chrome: '64',
771
+ edge: '79',
772
+ firefox: '78',
773
+ ios: '16.3',
774
+ node: '10',
775
+ safari: '16.3'
783
776
  },
784
777
  es2019: {
785
- chrome: '73.0.0',
786
- edge: '79.0.0',
787
- firefox: '78.0.0',
788
- safari: '17.0.0',
789
- opera: '60.0.0',
790
- samsung: '11.1.0'
778
+ chrome: '66',
779
+ edge: '79',
780
+ firefox: '78',
781
+ ios: '16.3',
782
+ node: '10',
783
+ safari: '16.3'
791
784
  },
792
785
  es2020: {
793
- chrome: '80.0.0',
794
- edge: '80.0.0',
795
- firefox: '80.0.0',
796
- safari: '17.0.0',
797
- opera: '67.0.0',
798
- samsung: '13.0.0'
786
+ chrome: '91',
787
+ edge: '91',
788
+ firefox: '80',
789
+ ios: '16.3',
790
+ node: '16.9',
791
+ safari: '16.3'
799
792
  },
800
793
  es2021: {
801
- chrome: '85.0.0',
802
- edge: '85.0.0',
803
- firefox: '80.0.0',
804
- safari: '17.0.0',
805
- opera: '71.0.0',
806
- samsung: '14.0.0'
794
+ chrome: '91',
795
+ edge: '91',
796
+ firefox: '80',
797
+ ios: '16.3',
798
+ node: '16.9',
799
+ safari: '16.3'
807
800
  },
808
801
  es2022: {
809
- chrome: '94.0.0',
810
- edge: '94.0.0',
811
- firefox: '93.0.0',
812
- safari: '17.0.0',
813
- opera: '80.0.0',
814
- samsung: '17.0.0'
802
+ chrome: '94',
803
+ edge: '94',
804
+ firefox: '93',
805
+ ios: '16.4',
806
+ node: '16.11',
807
+ safari: '16.4'
815
808
  },
816
- es2023: {
817
- chrome: '110.0.0',
818
- edge: '110.0.0',
819
- firefox: '115.0.0',
820
- safari: '17.0.0',
821
- opera: '96.0.0',
822
- samsung: '21.0.0'
809
+ get es2023 () {
810
+ return ESX_TO_BROWSERSLIST.es2022;
823
811
  },
824
812
  es2024: calcEsnextBrowserslistByTarget,
825
813
  esnext: calcEsnextBrowserslistByTarget
@@ -2425,9 +2413,6 @@ async function composeCreateRsbuildConfig(rslibConfig) {
2425
2413
  userConfig.source.entry = {};
2426
2414
  userConfig.output ??= {};
2427
2415
  delete userConfig.output.externals;
2428
- if (userConfig.output.distPath && 'string' == typeof userConfig.output.distPath) userConfig.output.distPath = {
2429
- root: userConfig.output.distPath
2430
- };
2431
2416
  const config = {
2432
2417
  format: libConfig.format ?? 'esm',
2433
2418
  config: (0, __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.mergeRsbuildConfig)(constantRsbuildConfig, libRsbuildConfig, omit(userConfig, {
@@ -3213,7 +3198,7 @@ const applyCommonOptions = (cli)=>{
3213
3198
  function runCli() {
3214
3199
  const cli = dist('rslib');
3215
3200
  cli.help();
3216
- cli.version("0.16.0");
3201
+ cli.version("0.16.1");
3217
3202
  applyCommonOptions(cli);
3218
3203
  const buildCommand = cli.command('build', 'build the library for production');
3219
3204
  const inspectCommand = cli.command('inspect', 'inspect the Rsbuild / Rspack configs of Rslib projects');
@@ -3306,8 +3291,8 @@ function prepareCli() {
3306
3291
  setupLogLevel();
3307
3292
  const { npm_execpath } = process.env;
3308
3293
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) logger.log();
3309
- logger.greet(` Rslib v0.16.0\n`);
3294
+ logger.greet(` Rslib v0.16.1\n`);
3310
3295
  }
3311
- const src_version = "0.16.0";
3296
+ const src_version = "0.16.1";
3312
3297
  var __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.rspack;
3313
3298
  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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rslib/core",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "The Rsbuild-based library development tool.",
5
5
  "homepage": "https://rslib.rs",
6
6
  "bugs": {
@@ -36,11 +36,11 @@
36
36
  "types.d.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "1.6.0-beta.0",
40
- "rsbuild-plugin-dts": "0.16.0"
39
+ "@rsbuild/core": "1.6.0-beta.1",
40
+ "rsbuild-plugin-dts": "0.16.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@module-federation/rsbuild-plugin": "^0.20.0",
43
+ "@module-federation/rsbuild-plugin": "^0.21.1",
44
44
  "@types/fs-extra": "^11.0.4",
45
45
  "cac": "^6.7.14",
46
46
  "chokidar": "^4.0.3",
@@ -50,7 +50,7 @@
50
50
  "picocolors": "1.1.1",
51
51
  "prebundle": "1.4.2",
52
52
  "rsbuild-plugin-publint": "^0.3.3",
53
- "rslib": "npm:@rslib/core@0.15.1",
53
+ "rslib": "npm:@rslib/core@0.16.0",
54
54
  "rslog": "^1.3.0",
55
55
  "tinyglobby": "0.2.14",
56
56
  "tsconfck": "3.1.6",