@rspack/cli 1.3.0 → 1.3.2

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  exports.ids = [
3
- '957'
3
+ '977'
4
4
  ];
5
5
  exports.modules = {
6
6
  "./src/utils/profile.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -30,7 +30,7 @@ exports.modules = {
30
30
  const defaultJSCPUProfileOutput = node_path__WEBPACK_IMPORTED_MODULE_2___default().join(defaultOutputDirname, "./jscpuprofile.json");
31
31
  const defaultRustTraceChromeOutput = node_path__WEBPACK_IMPORTED_MODULE_2___default().join(defaultOutputDirname, "./trace.json");
32
32
  const defaultRustTraceLoggerOutput = "stdout";
33
- const defaultRustTraceFilter = "trace";
33
+ const defaultRustTraceFilter = "info";
34
34
  const defaultRustTraceLayer = "chrome";
35
35
  const defaultLoggingOutput = node_path__WEBPACK_IMPORTED_MODULE_2___default().join(defaultOutputDirname, "./logging.json");
36
36
  function resolveProfile(value) {
@@ -1,5 +1,5 @@
1
1
  export const __webpack_ids__ = [
2
- '957'
2
+ '977'
3
3
  ];
4
4
  export const __webpack_modules__ = {
5
5
  "./src/utils/profile.ts": function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@@ -26,7 +26,7 @@ export const __webpack_modules__ = {
26
26
  const defaultJSCPUProfileOutput = node_path__WEBPACK_IMPORTED_MODULE_2__["default"].join(defaultOutputDirname, "./jscpuprofile.json");
27
27
  const defaultRustTraceChromeOutput = node_path__WEBPACK_IMPORTED_MODULE_2__["default"].join(defaultOutputDirname, "./trace.json");
28
28
  const defaultRustTraceLoggerOutput = "stdout";
29
- const defaultRustTraceFilter = "trace";
29
+ const defaultRustTraceFilter = "info";
30
30
  const defaultRustTraceLayer = "chrome";
31
31
  const defaultLoggingOutput = node_path__WEBPACK_IMPORTED_MODULE_2__["default"].join(defaultOutputDirname, "./logging.json");
32
32
  function resolveProfile(value) {
package/dist/index.js CHANGED
@@ -76,7 +76,7 @@ __webpack_require__.m = __webpack_modules__;
76
76
  __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
77
77
  })();
78
78
  (()=>{
79
- __webpack_require__.r = function(exports1) {
79
+ __webpack_require__.r = (exports1)=>{
80
80
  if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
81
81
  value: 'Module'
82
82
  });
@@ -190,10 +190,8 @@ var __webpack_exports__ = {};
190
190
  return;
191
191
  }
192
192
  if (!prevRef[someKey] || "string" == typeof prevRef[someKey]) prevRef[someKey] = {};
193
- if (index === splitKeys.length - 1) {
194
- if ("string" == typeof val) prevRef[someKey] = val;
195
- else prevRef[someKey] = true;
196
- }
193
+ if (index === splitKeys.length - 1) if ("string" == typeof val) prevRef[someKey] = val;
194
+ else prevRef[someKey] = true;
197
195
  prevRef = prevRef[someKey];
198
196
  });
199
197
  return previous;
@@ -704,7 +702,7 @@ var __webpack_exports__ = {};
704
702
  }
705
703
  if (options.profile) item.profile = true;
706
704
  if (process.env.RSPACK_PROFILE) {
707
- const { applyProfile } = await __webpack_require__.e("957").then(__webpack_require__.bind(__webpack_require__, "./src/utils/profile.ts"));
705
+ const { applyProfile } = await __webpack_require__.e("977").then(__webpack_require__.bind(__webpack_require__, "./src/utils/profile.ts"));
708
706
  await applyProfile(process.env.RSPACK_PROFILE, item);
709
707
  }
710
708
  if (options.watch) item.watch = options.watch;
@@ -780,8 +778,14 @@ var __webpack_exports__ = {};
780
778
  return plugin;
781
779
  }
782
780
  })();
783
- var __webpack_export_target__ = exports;
784
- for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
785
- if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
781
+ exports.RspackCLI = __webpack_exports__.RspackCLI;
782
+ exports.defineConfig = __webpack_exports__.defineConfig;
783
+ exports.definePlugin = __webpack_exports__.definePlugin;
784
+ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
785
+ "RspackCLI",
786
+ "defineConfig",
787
+ "definePlugin"
788
+ ].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
789
+ Object.defineProperty(exports, '__esModule', {
786
790
  value: true
787
791
  });
package/dist/index.mjs CHANGED
@@ -75,23 +75,21 @@ __webpack_require__.m = __webpack_modules__;
75
75
  };
76
76
  __webpack_require__.f.j = function(chunkId, promises) {
77
77
  var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : void 0;
78
- if (0 !== installedChunkData) {
79
- if (installedChunkData) promises.push(installedChunkData[1]);
80
- else {
81
- var promise = import("./" + __webpack_require__.u(chunkId)).then(installChunk, (e)=>{
82
- if (0 !== installedChunks[chunkId]) installedChunks[chunkId] = void 0;
83
- throw e;
84
- });
85
- var promise = Promise.race([
86
- promise,
87
- new Promise((resolve)=>{
88
- installedChunkData = installedChunks[chunkId] = [
89
- resolve
90
- ];
91
- })
92
- ]);
93
- promises.push(installedChunkData[1] = promise);
94
- }
78
+ if (0 !== installedChunkData) if (installedChunkData) promises.push(installedChunkData[1]);
79
+ else {
80
+ var promise = import("./" + __webpack_require__.u(chunkId)).then(installChunk, (e)=>{
81
+ if (0 !== installedChunks[chunkId]) installedChunks[chunkId] = void 0;
82
+ throw e;
83
+ });
84
+ var promise = Promise.race([
85
+ promise,
86
+ new Promise((resolve)=>{
87
+ installedChunkData = installedChunks[chunkId] = [
88
+ resolve
89
+ ];
90
+ })
91
+ ]);
92
+ promises.push(installedChunkData[1] = promise);
95
93
  }
96
94
  };
97
95
  })();
@@ -170,10 +168,8 @@ function normalizeEnv(argv) {
170
168
  return;
171
169
  }
172
170
  if (!prevRef[someKey] || "string" == typeof prevRef[someKey]) prevRef[someKey] = {};
173
- if (index === splitKeys.length - 1) {
174
- if ("string" == typeof val) prevRef[someKey] = val;
175
- else prevRef[someKey] = true;
176
- }
171
+ if (index === splitKeys.length - 1) if ("string" == typeof val) prevRef[someKey] = val;
172
+ else prevRef[someKey] = true;
177
173
  prevRef = prevRef[someKey];
178
174
  });
179
175
  return previous;
@@ -684,7 +680,7 @@ class RspackCLI {
684
680
  }
685
681
  if (options.profile) item.profile = true;
686
682
  if (process.env.RSPACK_PROFILE) {
687
- const { applyProfile } = await __webpack_require__.e("957").then(__webpack_require__.bind(__webpack_require__, "./src/utils/profile.ts"));
683
+ const { applyProfile } = await __webpack_require__.e("977").then(__webpack_require__.bind(__webpack_require__, "./src/utils/profile.ts"));
688
684
  await applyProfile(process.env.RSPACK_PROFILE, item);
689
685
  }
690
686
  if (options.watch) item.watch = options.watch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.dev",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@discoveryjs/json-ext": "^0.5.7",
32
- "@rspack/dev-server": "1.1.0",
32
+ "@rspack/dev-server": "1.1.1",
33
33
  "colorette": "2.0.20",
34
34
  "exit-hook": "^4.0.0",
35
35
  "interpret": "^3.1.1",
@@ -38,7 +38,7 @@
38
38
  "yargs": "17.7.2"
39
39
  },
40
40
  "devDependencies": {
41
- "@rslib/core": "0.5.4",
41
+ "@rslib/core": "0.6.1",
42
42
  "@types/interpret": "^1.1.3",
43
43
  "@types/rechoir": "^0.6.4",
44
44
  "@types/webpack-bundle-analyzer": "^4.7.0",
@@ -48,8 +48,8 @@
48
48
  "execa": "^5.1.1",
49
49
  "ts-node": "^10.9.2",
50
50
  "typescript": "^5.7.3",
51
- "@rspack/core": "1.3.0",
52
- "@rspack/tracing": "1.3.0"
51
+ "@rspack/core": "1.3.2",
52
+ "@rspack/tracing": "1.3.2"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@rspack/core": "^1.0.0-alpha || ^1.x",