@rspack/core 0.7.0-beta.1 → 0.7.0-beta.1-canary-c7db90a-20240521105933
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/compiled/enhanced-resolve/CachedInputFileSystem.js +477 -0
- package/compiled/enhanced-resolve/index.d.ts +510 -0
- package/compiled/enhanced-resolve/index.js +5566 -0
- package/compiled/enhanced-resolve/license +20 -0
- package/compiled/enhanced-resolve/package.json +1 -0
- package/compiled/watchpack/index.js +6 -6
- package/dist/ResolverFactory.d.ts +2 -2
- package/dist/ResolverFactory.js +3 -3
- package/dist/config/adapterRuleUse.d.ts +1 -1
- package/dist/config/defaults.js +1 -0
- package/dist/lib/CacheFacade.js +1 -1
- package/dist/node/NodeEnvironmentPlugin.js +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright JS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"enhanced-resolve","author":"Tobias Koppers @sokra","version":"5.12.0","license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -149,10 +149,10 @@ module.exports = function (glob, opts) {
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
const EventEmitter = (__nccwpck_require__(361).EventEmitter);
|
|
152
|
-
const fs = __nccwpck_require__(
|
|
152
|
+
const fs = __nccwpck_require__(344);
|
|
153
153
|
const path = __nccwpck_require__(17);
|
|
154
154
|
|
|
155
|
-
const watchEventSource = __nccwpck_require__(
|
|
155
|
+
const watchEventSource = __nccwpck_require__(511);
|
|
156
156
|
|
|
157
157
|
const EXISTANCE_ONLY_TIME_ENTRY = Object.freeze({});
|
|
158
158
|
|
|
@@ -1254,7 +1254,7 @@ module.exports = (plan, limit) => {
|
|
|
1254
1254
|
|
|
1255
1255
|
/***/ }),
|
|
1256
1256
|
|
|
1257
|
-
/***/
|
|
1257
|
+
/***/ 511:
|
|
1258
1258
|
/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => {
|
|
1259
1259
|
|
|
1260
1260
|
"use strict";
|
|
@@ -1609,7 +1609,7 @@ const getWatcherManager = __nccwpck_require__(399);
|
|
|
1609
1609
|
const LinkResolver = __nccwpck_require__(669);
|
|
1610
1610
|
const EventEmitter = (__nccwpck_require__(361).EventEmitter);
|
|
1611
1611
|
const globToRegExp = __nccwpck_require__(140);
|
|
1612
|
-
const watchEventSource = __nccwpck_require__(
|
|
1612
|
+
const watchEventSource = __nccwpck_require__(511);
|
|
1613
1613
|
|
|
1614
1614
|
const EMPTY_ARRAY = [];
|
|
1615
1615
|
const EMPTY_OPTIONS = {};
|
|
@@ -1986,11 +1986,11 @@ module.exports = Watchpack;
|
|
|
1986
1986
|
|
|
1987
1987
|
/***/ }),
|
|
1988
1988
|
|
|
1989
|
-
/***/
|
|
1989
|
+
/***/ 344:
|
|
1990
1990
|
/***/ ((module) => {
|
|
1991
1991
|
|
|
1992
1992
|
"use strict";
|
|
1993
|
-
module.exports = require("../graceful-fs");
|
|
1993
|
+
module.exports = require("../graceful-fs/index.js");
|
|
1994
1994
|
|
|
1995
1995
|
/***/ }),
|
|
1996
1996
|
|
|
@@ -31,8 +31,8 @@ type ResolveOptionsWithDependencyType = WebpackResolveOptions & {
|
|
|
31
31
|
resolveToContext?: boolean;
|
|
32
32
|
};
|
|
33
33
|
import { SyncHook } from "tapable";
|
|
34
|
-
type Resolver = import("enhanced-resolve").Resolver;
|
|
35
|
-
type ResolveOptions = import("enhanced-resolve").ResolveOptions;
|
|
34
|
+
type Resolver = import("../compiled/enhanced-resolve").Resolver;
|
|
35
|
+
type ResolveOptions = import("../compiled/enhanced-resolve").ResolveOptions;
|
|
36
36
|
type ResolverCache = {
|
|
37
37
|
direct: WeakMap<Object, ResolverWithOptions>;
|
|
38
38
|
stringified: Map<string, ResolverWithOptions>;
|
package/dist/ResolverFactory.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
9
9
|
*/
|
|
10
10
|
"use strict";
|
|
11
|
-
const Factory = require("enhanced-resolve").ResolverFactory;
|
|
11
|
+
const Factory = require("../compiled/enhanced-resolve").ResolverFactory;
|
|
12
12
|
const { HookMap, SyncHook, SyncWaterfallHook } = require("tapable");
|
|
13
13
|
const { cachedCleverMerge, removeOperations, resolveByProperty } = require("./util/cleverMerge");
|
|
14
|
-
/** @typedef {import("enhanced-resolve").ResolveOptions} ResolveOptions */
|
|
15
|
-
/** @typedef {import("enhanced-resolve").Resolver} Resolver */
|
|
14
|
+
/** @typedef {import("../compiled/enhanced-resolve").ResolveOptions} ResolveOptions */
|
|
15
|
+
/** @typedef {import("../compiled/enhanced-resolve").Resolver} Resolver */
|
|
16
16
|
// /** @typedef {import("../declarations/WebpackOptions").ResolveOptions} WebpackResolveOptions */
|
|
17
17
|
// /** @typedef {import("../declarations/WebpackOptions").ResolvePluginInstance} ResolvePluginInstance */
|
|
18
18
|
/** @typedef {any} WebpackResolveOptions */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { JsAssetInfo, JsLoaderContext, RawModuleRuleUse, RawOptions } from "@rspack/binding";
|
|
3
|
-
import { ResolveRequest } from "enhanced-resolve";
|
|
3
|
+
import { ResolveRequest } from "../../compiled/enhanced-resolve";
|
|
4
4
|
import { Compiler } from "../Compiler";
|
|
5
5
|
import { Logger } from "../logging/Logger";
|
|
6
6
|
import Hash = require("../util/hash");
|
package/dist/config/defaults.js
CHANGED
package/dist/lib/CacheFacade.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Author Tobias Koppers @sokra
|
|
4
4
|
*/
|
|
5
5
|
"use strict";
|
|
6
|
-
const { forEachBail } = require("enhanced-resolve");
|
|
6
|
+
const { forEachBail } = require("../../compiled/enhanced-resolve");
|
|
7
7
|
const asyncLib = require("../../compiled/neo-async");
|
|
8
8
|
const getLazyHashedEtag = require("./cache/getLazyHashedEtag.js");
|
|
9
9
|
const mergeEtags = require("./cache/mergeEtags.js");
|
|
@@ -13,7 +13,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
13
13
|
* https://github.com/webpack/webpack/blob/main/LICENSE
|
|
14
14
|
*/
|
|
15
15
|
// @ts-expect-error
|
|
16
|
-
const CachedInputFileSystem_1 = __importDefault(require("enhanced-resolve/
|
|
16
|
+
const CachedInputFileSystem_1 = __importDefault(require("../../compiled/enhanced-resolve/CachedInputFileSystem"));
|
|
17
17
|
const graceful_fs_1 = __importDefault(require("../../compiled/graceful-fs"));
|
|
18
18
|
const createConsoleLogger_1 = __importDefault(require("../logging/createConsoleLogger"));
|
|
19
19
|
const nodeConsole_1 = __importDefault(require("./nodeConsole"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.7.0-beta.1",
|
|
3
|
+
"version": "0.7.0-beta.1-canary-c7db90a-20240521105933",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"copy-webpack-plugin": "5.1.2",
|
|
42
42
|
"cross-env": "^7.0.3",
|
|
43
43
|
"del": "^6.0.0",
|
|
44
|
+
"enhanced-resolve": "5.12.0",
|
|
44
45
|
"file-loader": "^6.2.0",
|
|
45
46
|
"glob": "^10.3.10",
|
|
46
47
|
"graceful-fs": "4.2.10",
|
|
@@ -71,16 +72,15 @@
|
|
|
71
72
|
"watchpack": "^2.4.0",
|
|
72
73
|
"zod": "^3.21.4",
|
|
73
74
|
"zod-validation-error": "1.3.1",
|
|
74
|
-
"@rspack/core": "0.7.0-beta.1",
|
|
75
|
-
"@rspack/plugin-minify": "^0.7.0-beta.1"
|
|
75
|
+
"@rspack/core": "0.7.0-beta.1-canary-c7db90a-20240521105933",
|
|
76
|
+
"@rspack/plugin-minify": "^0.7.0-beta.1-canary-c7db90a-20240521105933"
|
|
76
77
|
},
|
|
77
78
|
"dependencies": {
|
|
78
79
|
"@module-federation/runtime-tools": "0.1.6",
|
|
79
80
|
"caniuse-lite": "^1.0.30001616",
|
|
80
|
-
"enhanced-resolve": "5.12.0",
|
|
81
81
|
"tapable": "2.2.1",
|
|
82
82
|
"webpack-sources": "3.2.3",
|
|
83
|
-
"@rspack/binding": "0.7.0-beta.1"
|
|
83
|
+
"@rspack/binding": "0.7.0-beta.1-canary-c7db90a-20240521105933"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@swc/helpers": ">=0.5.1"
|