@rspack/cli 2.0.0-beta.7 → 2.0.0-beta.9

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
@@ -1,12 +1,35 @@
1
- import * as __rspack_external_module from "module";
2
- import * as __rspack_external_path from "path";
3
- import { __webpack_require__ } from "./rslib-runtime.js";
4
1
  import node_path from "node:path";
5
2
  import node_util from "node:util";
6
3
  import { rspack } from "@rspack/core";
7
4
  import node_fs from "node:fs";
8
5
  import { createRequire } from "node:module";
9
6
  import { pathToFileURL } from "node:url";
7
+ import { createRequire as __rspack_createRequire } from "node:module";
8
+ const __rspack_createRequire_require = __rspack_createRequire(import.meta.url);
9
+ var __webpack_modules__ = {};
10
+ var __webpack_module_cache__ = {};
11
+ function __webpack_require__(moduleId) {
12
+ var cachedModule = __webpack_module_cache__[moduleId];
13
+ if (void 0 !== cachedModule) return cachedModule.exports;
14
+ var module = __webpack_module_cache__[moduleId] = {
15
+ exports: {}
16
+ };
17
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
18
+ return module.exports;
19
+ }
20
+ __webpack_require__.m = __webpack_modules__;
21
+ (()=>{
22
+ __webpack_require__.add = function(modules) {
23
+ Object.assign(__webpack_require__.m, modules);
24
+ };
25
+ })();
26
+ (()=>{
27
+ __webpack_require__.nmd = (module)=>{
28
+ module.paths = [];
29
+ if (!module.children) module.children = [];
30
+ return module;
31
+ };
32
+ })();
10
33
  __webpack_require__.add({
11
34
  "../../node_modules/.pnpm/pirates@4.0.7/node_modules/pirates/lib/index.js" (module, exports, __webpack_require__) {
12
35
  module = __webpack_require__.nmd(module);
@@ -69,10 +92,10 @@ __webpack_require__.add({
69
92
  exports.addHook = addHook;
70
93
  },
71
94
  module (module) {
72
- module.exports = __rspack_external_module;
95
+ module.exports = __rspack_createRequire_require("module");
73
96
  },
74
97
  path (module) {
75
- module.exports = __rspack_external_path;
98
+ module.exports = __rspack_createRequire_require("path");
76
99
  }
77
100
  });
78
101
  function toArr(any) {
@@ -1130,7 +1153,7 @@ class RspackCLI {
1130
1153
  this.colors = this.createColors();
1131
1154
  this.program = program;
1132
1155
  program.help();
1133
- program.version("2.0.0-beta.7");
1156
+ program.version("2.0.0-beta.9");
1134
1157
  }
1135
1158
  async buildCompilerConfig(options, rspackCommand) {
1136
1159
  let { config, pathMap } = await this.loadConfig(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "2.0.0-beta.7",
3
+ "version": "2.0.0-beta.9",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.rs",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -31,17 +31,17 @@
31
31
  "exit-hook": "^4.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@rslib/core": "0.20.0",
35
- "@rspack/dev-server": "2.0.0-beta.5",
34
+ "@rslib/core": "0.20.1",
35
+ "@rspack/dev-server": "2.0.0-beta.7",
36
36
  "cac": "^7.0.0",
37
37
  "concat-stream": "^2.0.0",
38
38
  "cross-env": "^10.1.0",
39
39
  "execa": "^5.1.1",
40
40
  "pirates": "^4.0.7",
41
41
  "ts-node": "^10.9.2",
42
- "typescript": "^5.9.3",
43
- "@rspack/core": "2.0.0-beta.7",
44
- "@rspack/test-tools": "2.0.0-beta.7"
42
+ "typescript": "^6.0.2",
43
+ "@rspack/core": "2.0.0-beta.9",
44
+ "@rspack/test-tools": "2.0.0-beta.9"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@rspack/core": "^2.0.0-0",
@@ -1,25 +0,0 @@
1
- var __webpack_modules__ = {};
2
- var __webpack_module_cache__ = {};
3
- function __webpack_require__(moduleId) {
4
- var cachedModule = __webpack_module_cache__[moduleId];
5
- if (void 0 !== cachedModule) return cachedModule.exports;
6
- var module = __webpack_module_cache__[moduleId] = {
7
- exports: {}
8
- };
9
- __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
10
- return module.exports;
11
- }
12
- __webpack_require__.m = __webpack_modules__;
13
- (()=>{
14
- __webpack_require__.add = function(modules) {
15
- Object.assign(__webpack_require__.m, modules);
16
- };
17
- })();
18
- (()=>{
19
- __webpack_require__.nmd = (module)=>{
20
- module.paths = [];
21
- if (!module.children) module.children = [];
22
- return module;
23
- };
24
- })();
25
- export { __webpack_require__ };