@rspack/core 0.1.7 → 0.1.8
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/compilation.js
CHANGED
|
@@ -157,7 +157,7 @@ class Compilation {
|
|
|
157
157
|
options.modules = optionOrLocalFallback(options.modules, true);
|
|
158
158
|
options.reasons = optionOrLocalFallback(options.reasons, !context.forToString);
|
|
159
159
|
options.entrypoints = optionOrLocalFallback(options.entrypoints, true);
|
|
160
|
-
options.chunkGroups = optionOrLocalFallback(options.
|
|
160
|
+
options.chunkGroups = optionOrLocalFallback(options.chunkGroups, !context.forToString);
|
|
161
161
|
options.errors = optionOrLocalFallback(options.errors, true);
|
|
162
162
|
options.errorsCount = optionOrLocalFallback(options.errorsCount, true);
|
|
163
163
|
options.warnings = optionOrLocalFallback(options.warnings, true);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveSwcPlugin.d.ts","sourceRoot":"","sources":["../../src/web/ResolveSwcPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ResolveSwcPlugin.d.ts","sourceRoot":"","sources":["../../src/web/ResolveSwcPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAIvC,qBAAa,gBAAgB;IAC5B,KAAK,CAAC,QAAQ,EAAE,QAAQ;CAcxB"}
|
|
@@ -5,8 +5,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.ResolveSwcPlugin = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
|
+
const compare_versions_1 = require("compare-versions");
|
|
8
9
|
class ResolveSwcPlugin {
|
|
9
10
|
apply(compiler) {
|
|
11
|
+
const swcHelperVersion = require("@swc/helpers/package.json").version;
|
|
12
|
+
if ((0, compare_versions_1.compareVersions)(swcHelperVersion, "0.5.0") === -1) {
|
|
13
|
+
throw new Error("Please bump @swc/helpers to ^0.5.0");
|
|
14
|
+
}
|
|
10
15
|
const swcPath = path_1.default.dirname(require.resolve("@swc/helpers/package.json"));
|
|
11
16
|
const refreshPath = path_1.default.dirname(require.resolve("react-refresh"));
|
|
12
17
|
// redirect @swc/helpers to rspack, so user don't have to manual install it
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResolveSwcPlugin.js","sourceRoot":"","sources":["../../src/web/ResolveSwcPlugin.ts"],"names":[],"mappings":";;;;;;AACA,gDAAwB;AACxB,MAAa,gBAAgB;IAC5B,KAAK,CAAC,QAAkB;QACvB,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;QAC3E,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;QACnE,2EAA2E;QAC3E,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG;YAChC,cAAc,EAAE,OAAO;YACvB,eAAe,EAAE,WAAW;YAC5B,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;SACjC,CAAC;IACH,CAAC;CACD;
|
|
1
|
+
{"version":3,"file":"ResolveSwcPlugin.js","sourceRoot":"","sources":["../../src/web/ResolveSwcPlugin.ts"],"names":[],"mappings":";;;;;;AACA,gDAAwB;AACxB,uDAAmD;AAEnD,MAAa,gBAAgB;IAC5B,KAAK,CAAC,QAAkB;QACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,2BAA2B,CAAC,CAAC,OAAO,CAAC;QACtE,IAAI,IAAA,kCAAe,EAAC,gBAAgB,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;YACtD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACtD;QACD,MAAM,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC,CAAC;QAC3E,MAAM,WAAW,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;QACnE,2EAA2E;QAC3E,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,GAAG;YAChC,cAAc,EAAE,OAAO;YACvB,eAAe,EAAE,WAAW;YAC5B,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK;SACjC,CAAC;IACH,CAAC;CACD;AAfD,4CAeC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A Fast Rust-based Web Bundler",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"directory": "packages/rspack"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@swc/helpers": "^0.
|
|
19
|
+
"@swc/helpers": "^0.5.0",
|
|
20
20
|
"@types/jest": "29.0.2",
|
|
21
21
|
"@types/node": "^18.6.3",
|
|
22
22
|
"@types/rimraf": "3.0.2",
|
|
@@ -47,13 +47,14 @@
|
|
|
47
47
|
"uvu": "0.5.6",
|
|
48
48
|
"wast-loader": "^1.11.4",
|
|
49
49
|
"webpack-dev-server": "4.13.1",
|
|
50
|
-
"@rspack/core": "0.1.
|
|
51
|
-
"@rspack/plugin-minify": "^0.1.
|
|
52
|
-
"@rspack/plugin-node-polyfill": "^0.1.
|
|
53
|
-
"@rspack/postcss-loader": "^0.1.
|
|
50
|
+
"@rspack/core": "0.1.8",
|
|
51
|
+
"@rspack/plugin-minify": "^0.1.8",
|
|
52
|
+
"@rspack/plugin-node-polyfill": "^0.1.8",
|
|
53
|
+
"@rspack/postcss-loader": "^0.1.8"
|
|
54
54
|
},
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"
|
|
56
|
+
"compare-versions": "6.0.0-rc.1",
|
|
57
|
+
"@swc/helpers": "0.5.0",
|
|
57
58
|
"browserslist": "^4.21.3",
|
|
58
59
|
"enhanced-resolve": "5.12.0",
|
|
59
60
|
"graceful-fs": "4.2.10",
|
|
@@ -63,8 +64,8 @@
|
|
|
63
64
|
"tapable": "2.2.1",
|
|
64
65
|
"watchpack": "^2.4.0",
|
|
65
66
|
"webpack-sources": "3.2.3",
|
|
66
|
-
"@rspack/binding": "0.1.
|
|
67
|
-
"@rspack/dev-client": "0.1.
|
|
67
|
+
"@rspack/binding": "0.1.8",
|
|
68
|
+
"@rspack/dev-client": "0.1.8"
|
|
68
69
|
},
|
|
69
70
|
"scripts": {
|
|
70
71
|
"build": "tsc",
|