@rslib/core 0.15.0 → 0.15.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 +8 -6
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ const DEFAULT_CONFIG_EXTENSIONS = [
18
18
  '.cts'
19
19
  ];
20
20
  const SWC_HELPERS = '@swc/helpers';
21
- const SHEBANG_PREFIX = '#!';
22
21
  const SHEBANG_REGEX = /#!.*[\s\n\r]*$/;
23
22
  const REACT_DIRECTIVE_REGEX = /^['"]use (client|server)['"](;?)[\s\n\r]*$/;
24
23
  const DTS_EXTENSIONS = [
@@ -395,7 +394,7 @@ class EntryChunkPlugin {
395
394
  const content = compiler.inputFileSystem.readFileSync(filename, {
396
395
  encoding: 'utf-8'
397
396
  });
398
- if (content.startsWith(SHEBANG_PREFIX)) {
397
+ if (content.startsWith("#!")) {
399
398
  const shebangMatch = matchFirstLine(content, SHEBANG_REGEX);
400
399
  if (shebangMatch) this.shebangEntries[name] = shebangMatch;
401
400
  }
@@ -1683,7 +1682,10 @@ const composeFormatConfig = ({ format, bundle = true, umdName, pkgJson })=>{
1683
1682
  },
1684
1683
  esm: {
1685
1684
  importMeta: false,
1686
- importDynamic: false
1685
+ importDynamic: false,
1686
+ commonjs: {
1687
+ exports: 'skipInEsm'
1688
+ }
1687
1689
  },
1688
1690
  others: {
1689
1691
  worker: false
@@ -3126,7 +3128,7 @@ const applyCommonOptions = (cli)=>{
3126
3128
  function runCli() {
3127
3129
  const cli = dist('rslib');
3128
3130
  cli.help();
3129
- cli.version("0.15.0");
3131
+ cli.version("0.15.1");
3130
3132
  applyCommonOptions(cli);
3131
3133
  const buildCommand = cli.command('build', 'build the library for production');
3132
3134
  const inspectCommand = cli.command('inspect', 'inspect the Rsbuild / Rspack configs of Rslib projects');
@@ -3209,8 +3211,8 @@ function prepareCli() {
3209
3211
  setupLogLevel();
3210
3212
  const { npm_execpath } = process.env;
3211
3213
  if (!npm_execpath || npm_execpath.includes('npx-cli.js') || npm_execpath.includes('.bun')) logger.log();
3212
- logger.greet(` Rslib v0.15.0\n`);
3214
+ logger.greet(` Rslib v0.15.1\n`);
3213
3215
  }
3214
- const src_version = "0.15.0";
3216
+ const src_version = "0.15.1";
3215
3217
  var __webpack_exports__rspack = __WEBPACK_EXTERNAL_MODULE__rsbuild_core_1b356efc__.rspack;
3216
3218
  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.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "The Rsbuild-based library development tool.",
5
5
  "homepage": "https://rslib.rs",
6
6
  "bugs": {
@@ -36,25 +36,25 @@
36
36
  "types.d.ts"
37
37
  ],
38
38
  "dependencies": {
39
- "@rsbuild/core": "~1.5.13",
40
- "rsbuild-plugin-dts": "0.15.0"
39
+ "@rsbuild/core": "~1.5.17",
40
+ "rsbuild-plugin-dts": "0.15.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@module-federation/rsbuild-plugin": "^0.19.1",
43
+ "@module-federation/rsbuild-plugin": "^0.20.0",
44
44
  "@types/fs-extra": "^11.0.4",
45
45
  "cac": "^6.7.14",
46
46
  "chokidar": "^4.0.3",
47
47
  "fs-extra": "^11.3.2",
48
- "memfs": "^4.47.0",
48
+ "memfs": "^4.49.0",
49
49
  "path-serializer": "0.5.1",
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.14.0",
53
+ "rslib": "npm:@rslib/core@0.15.0",
54
54
  "rslog": "^1.2.11",
55
55
  "tinyglobby": "0.2.14",
56
56
  "tsconfck": "3.1.6",
57
- "typescript": "^5.9.2",
57
+ "typescript": "^5.9.3",
58
58
  "@rslib/tsconfig": "0.0.1"
59
59
  },
60
60
  "peerDependencies": {