@rspack-debug/browser 2.0.0-beta.8 → 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/FileSystem.d.ts +1 -1
- package/dist/browser/BrowserRequirePlugin.d.ts +1 -1
- package/dist/browser/fs.d.ts +1 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +1 -1
- package/dist/builtin-loader/swc/types.d.ts +6 -0
- package/dist/config/types.d.ts +5 -0
- package/dist/exports.d.ts +3 -3
- package/dist/index.d.ts +1 -2
- package/dist/index.js +177 -108
- package/dist/napi-binding.d.ts +27 -22
- package/dist/swc.d.ts +1 -1
- package/package.json +2 -2
- package/dist/rslib-runtime.js +0 -65
package/dist/FileSystem.d.ts
CHANGED
|
@@ -51,4 +51,4 @@ declare class ThreadsafeIntermediateNodeFS extends ThreadsafeOutputNodeFS {
|
|
|
51
51
|
constructor(fs?: IntermediateFileSystem);
|
|
52
52
|
static __to_binding(fs?: IntermediateFileSystem): ThreadsafeIntermediateNodeFS;
|
|
53
53
|
}
|
|
54
|
-
export { ThreadsafeInputNodeFS,
|
|
54
|
+
export { ThreadsafeInputNodeFS, ThreadsafeIntermediateNodeFS, ThreadsafeOutputNodeFS, };
|
|
@@ -31,7 +31,7 @@ export declare class BrowserRequirePlugin {
|
|
|
31
31
|
* This is an unsafe way to execute code in the browser using `new Function`.
|
|
32
32
|
* It is your responsibility to ensure that your application is not vulnerable to attacks due to this function.
|
|
33
33
|
*/
|
|
34
|
-
static unsafeExecute: (
|
|
34
|
+
static unsafeExecute: (code: string, runtime: CommonJsRuntime) => void;
|
|
35
35
|
constructor(options: BrowserRequirePluginOptions);
|
|
36
36
|
apply(compiler: Compiler): void;
|
|
37
37
|
}
|
package/dist/browser/fs.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ declare const readFileSync: (file: import("memfs/lib/core").TFileId, options?: i
|
|
|
10
10
|
(path: import("memfs/lib/node/types/misc").PathLike, options: import("memfs/lib/node/types/options").IReaddirOptions | string, callback: import("memfs/lib/node/types/misc").TCallback<import("memfs/lib/encoding").TDataOut[] | import("memfs/lib/node/Dirent").Dirent[]>): any;
|
|
11
11
|
}, watch: (path: import("memfs/lib/node/types/misc").PathLike, options?: import("memfs/lib/node/volume").IWatchOptions | string, listener?: (eventType: string, filename: string) => void) => import("memfs/lib/node/volume").FSWatcher;
|
|
12
12
|
export default fs;
|
|
13
|
-
export {
|
|
13
|
+
export { existsSync, lstat, readdir, readdirSync, readFileSync, watch };
|
|
@@ -29,5 +29,5 @@ type PluginImportConfig = {
|
|
|
29
29
|
};
|
|
30
30
|
type PluginImportOptions = PluginImportConfig[];
|
|
31
31
|
declare function resolvePluginImport(pluginImport: PluginImportOptions): RawPluginImportConfig[] | undefined;
|
|
32
|
-
export { resolvePluginImport };
|
|
33
32
|
export type { PluginImportOptions };
|
|
33
|
+
export { resolvePluginImport };
|
|
@@ -9,6 +9,12 @@ export type SwcLoaderEsParserConfig = EsParserConfig;
|
|
|
9
9
|
export type SwcLoaderTsParserConfig = TsParserConfig;
|
|
10
10
|
export type SwcLoaderTransformConfig = TransformConfig;
|
|
11
11
|
export type SwcLoaderOptions = Config & {
|
|
12
|
+
/**
|
|
13
|
+
* When set to `"auto"`, `builtin:swc-loader` infers `jsc.parser` from the resource extension.
|
|
14
|
+
* This is useful when one rule needs to handle mixed module types such as `.js`, `.jsx`, `.ts`, and `.tsx`.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
detectSyntax?: false | 'auto';
|
|
12
18
|
isModule?: boolean | 'unknown';
|
|
13
19
|
/**
|
|
14
20
|
* Collects information from TypeScript's AST for consumption by subsequent Rspack processes,
|
package/dist/config/types.d.ts
CHANGED
|
@@ -893,6 +893,11 @@ export type JavascriptParserOptions = {
|
|
|
893
893
|
* @default false
|
|
894
894
|
*/
|
|
895
895
|
deferImport?: boolean;
|
|
896
|
+
/**
|
|
897
|
+
* Whether to enable import.meta.resolve().
|
|
898
|
+
* @default false
|
|
899
|
+
*/
|
|
900
|
+
importMetaResolve?: boolean;
|
|
896
901
|
};
|
|
897
902
|
export type JsonParserOptions = {
|
|
898
903
|
/**
|
package/dist/exports.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
declare const rspackVersion: string;
|
|
2
2
|
declare const version: string;
|
|
3
|
-
export { rspackVersion, version };
|
|
4
3
|
export type { Asset, AssetInfo, Assets, ChunkPathData, CompilationParams, LogEntry, PathData, } from './Compilation';
|
|
5
4
|
export { Compilation } from './Compilation';
|
|
6
5
|
export { Compiler, type CompilerHooks } from './Compiler';
|
|
7
6
|
export type { MultiCompilerOptions, MultiRspackOptions } from './MultiCompiler';
|
|
8
7
|
export { MultiCompiler } from './MultiCompiler';
|
|
8
|
+
export { rspackVersion, version };
|
|
9
9
|
import { RspackOptionsApply } from './rspackOptionsApply';
|
|
10
|
-
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
11
10
|
export type { ChunkGroup } from './binding';
|
|
12
11
|
export { AsyncDependenciesBlock, Dependency, EntryDependency, } from './binding';
|
|
13
12
|
export type { Chunk } from './Chunk';
|
|
@@ -26,9 +25,10 @@ export { RuntimeModule } from './RuntimeModule';
|
|
|
26
25
|
export type { StatsAsset, StatsChunk, StatsCompilation, StatsError, StatsModule, } from './Stats';
|
|
27
26
|
export { Stats } from './Stats';
|
|
28
27
|
export { StatsErrorCode } from './stats/statsFactoryUtils';
|
|
28
|
+
export { RspackOptionsApply, RspackOptionsApply as WebpackOptionsApply };
|
|
29
29
|
import * as ModuleFilenameHelpers from './lib/ModuleFilenameHelpers';
|
|
30
|
-
export { ModuleFilenameHelpers };
|
|
31
30
|
export { Template } from './Template';
|
|
31
|
+
export { ModuleFilenameHelpers };
|
|
32
32
|
export declare const WebpackError: ErrorConstructor;
|
|
33
33
|
export type { Watching } from './Watching';
|
|
34
34
|
import * as sources from 'webpack-sources';
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,8 +1,72 @@
|
|
|
1
1
|
/*! LICENSE: index.js.LICENSE.txt */
|
|
2
|
-
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
3
|
-
import { __webpack_require__ } from "./rslib-runtime.js";
|
|
4
2
|
import rspack_wasi_browser, { AsyncDependenciesBlock, BuiltinPluginName as external_rspack_wasi_browser_js_BuiltinPluginName, Chunk, ChunkGraph, Chunks as external_rspack_wasi_browser_js_Chunks, ConcatenatedModule, ContextModule, Dependency, EnforceExtension, EntryDependency, ExternalModule, JsCoordinator, JsLoaderState, JsRspackSeverity, Module, NormalModule, RawRuleSetConditionType, RegisterJsTapKind, ResolverFactory as external_rspack_wasi_browser_js_ResolverFactory, async as external_rspack_wasi_browser_js_async, cleanupGlobalTrace, formatDiagnostic, registerGlobalTrace, sync, syncTraceEvent, transformSync as external_rspack_wasi_browser_js_transformSync } from "./rspack.wasi-browser.js";
|
|
5
|
-
import { AsyncParallelHook, AsyncSeriesBailHook,
|
|
3
|
+
import { AsyncParallelHook, AsyncSeriesBailHook, HookMap, SyncBailHook, SyncHook, SyncWaterfallHook } from "@rspack/lite-tapable";
|
|
4
|
+
import * as __rspack_external__rspack_wasi_browser_js_bd433424 from "./rspack.wasi-browser.js";
|
|
5
|
+
import * as __rspack_external__rspack_lite_tapable_c6bdf810 from "@rspack/lite-tapable";
|
|
6
|
+
var __webpack_modules__ = {};
|
|
7
|
+
var __webpack_module_cache__ = {};
|
|
8
|
+
function __webpack_require__(moduleId) {
|
|
9
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
10
|
+
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
11
|
+
var module = __webpack_module_cache__[moduleId] = {
|
|
12
|
+
exports: {}
|
|
13
|
+
};
|
|
14
|
+
__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
15
|
+
return module.exports;
|
|
16
|
+
}
|
|
17
|
+
__webpack_require__.m = __webpack_modules__;
|
|
18
|
+
(()=>{
|
|
19
|
+
__webpack_require__.n = (module)=>{
|
|
20
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
21
|
+
__webpack_require__.d(getter, {
|
|
22
|
+
a: getter
|
|
23
|
+
});
|
|
24
|
+
return getter;
|
|
25
|
+
};
|
|
26
|
+
})();
|
|
27
|
+
(()=>{
|
|
28
|
+
__webpack_require__.d = (exports, definition)=>{
|
|
29
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: definition[key]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
(()=>{
|
|
36
|
+
__webpack_require__.add = function(modules) {
|
|
37
|
+
Object.assign(__webpack_require__.m, modules);
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
(()=>{
|
|
41
|
+
__webpack_require__.g = (()=>{
|
|
42
|
+
if ('object' == typeof globalThis) return globalThis;
|
|
43
|
+
try {
|
|
44
|
+
return this || new Function('return this')();
|
|
45
|
+
} catch (e) {
|
|
46
|
+
if ('object' == typeof window) return window;
|
|
47
|
+
}
|
|
48
|
+
})();
|
|
49
|
+
})();
|
|
50
|
+
(()=>{
|
|
51
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
52
|
+
})();
|
|
53
|
+
(()=>{
|
|
54
|
+
__webpack_require__.r = (exports)=>{
|
|
55
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
56
|
+
value: 'Module'
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, '__esModule', {
|
|
59
|
+
value: true
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
})();
|
|
63
|
+
(()=>{
|
|
64
|
+
__webpack_require__.nmd = (module)=>{
|
|
65
|
+
module.paths = [];
|
|
66
|
+
if (!module.children) module.children = [];
|
|
67
|
+
return module;
|
|
68
|
+
};
|
|
69
|
+
})();
|
|
6
70
|
__webpack_require__.add({
|
|
7
71
|
"../../node_modules/.pnpm/asn1.js@4.10.1/node_modules/asn1.js/lib/asn1.js" (__unused_rspack_module, exports, __webpack_require__) {
|
|
8
72
|
var asn1 = exports;
|
|
@@ -32920,6 +32984,9 @@ __webpack_require__.add({
|
|
|
32920
32984
|
execute();
|
|
32921
32985
|
}
|
|
32922
32986
|
};
|
|
32987
|
+
exports.getNumberOfWatchers = ()=>watcherCount;
|
|
32988
|
+
exports.createHandleChangeEvent = createHandleChangeEvent;
|
|
32989
|
+
exports.watcherLimit = watcherLimit;
|
|
32923
32990
|
},
|
|
32924
32991
|
"../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/watchpack.js" (module, __unused_rspack_exports, __webpack_require__) {
|
|
32925
32992
|
const getWatcherManager = __webpack_require__("../../node_modules/.pnpm/watchpack@2.4.4/node_modules/watchpack/lib/getWatcherManager.js");
|
|
@@ -35310,14 +35377,14 @@ __webpack_require__.add({
|
|
|
35310
35377
|
watch: ()=>watch
|
|
35311
35378
|
});
|
|
35312
35379
|
var _napi_rs_wasm_runtime_fs__rspack_import_0 = __webpack_require__("../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.1.1/node_modules/@napi-rs/wasm-runtime/dist/fs.js");
|
|
35313
|
-
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?
|
|
35380
|
+
var _rspack_binding__rspack_import_1 = __webpack_require__("@rspack/binding?c40c");
|
|
35314
35381
|
const fs = _rspack_binding__rspack_import_1.__fs;
|
|
35315
35382
|
const volume = _rspack_binding__rspack_import_1.__volume;
|
|
35316
35383
|
const memfs = _napi_rs_wasm_runtime_fs__rspack_import_0.tO;
|
|
35317
35384
|
const { readFileSync, readdirSync, lstat, existsSync, readdir, watch } = fs;
|
|
35318
35385
|
const __rspack_default_export = fs;
|
|
35319
35386
|
},
|
|
35320
|
-
"@rspack/binding?
|
|
35387
|
+
"@rspack/binding?c40c" (module) {
|
|
35321
35388
|
module.exports = __rspack_external__rspack_wasi_browser_js_bd433424;
|
|
35322
35389
|
},
|
|
35323
35390
|
"?7763" () {},
|
|
@@ -51847,7 +51914,7 @@ class Compilation {
|
|
|
51847
51914
|
constructor(compiler, inner){
|
|
51848
51915
|
this.#inner = inner;
|
|
51849
51916
|
this.#shutdown = false;
|
|
51850
|
-
const processAssetsHook = new AsyncSeriesHook([
|
|
51917
|
+
const processAssetsHook = new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51851
51918
|
'assets'
|
|
51852
51919
|
]);
|
|
51853
51920
|
const createProcessAssetsHook = (name, stage, getArgs)=>{
|
|
@@ -51882,94 +51949,94 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
51882
51949
|
};
|
|
51883
51950
|
this.hooks = {
|
|
51884
51951
|
processAssets: processAssetsHook,
|
|
51885
|
-
afterProcessAssets: new SyncHook([
|
|
51952
|
+
afterProcessAssets: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51886
51953
|
'assets'
|
|
51887
51954
|
]),
|
|
51888
51955
|
additionalAssets: createProcessAssetsHook('additionalAssets', Compilation.PROCESS_ASSETS_STAGE_ADDITIONAL, ()=>[]),
|
|
51889
|
-
childCompiler: new SyncHook([
|
|
51956
|
+
childCompiler: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51890
51957
|
'childCompiler',
|
|
51891
51958
|
'compilerName',
|
|
51892
51959
|
'compilerIndex'
|
|
51893
51960
|
]),
|
|
51894
|
-
log: new SyncBailHook([
|
|
51961
|
+
log: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51895
51962
|
'origin',
|
|
51896
51963
|
'logEntry'
|
|
51897
51964
|
]),
|
|
51898
|
-
optimizeModules: new SyncBailHook([
|
|
51965
|
+
optimizeModules: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51899
51966
|
'modules'
|
|
51900
51967
|
]),
|
|
51901
|
-
afterOptimizeModules: new SyncBailHook([
|
|
51968
|
+
afterOptimizeModules: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51902
51969
|
'modules'
|
|
51903
51970
|
]),
|
|
51904
|
-
optimizeTree: new AsyncSeriesHook([
|
|
51971
|
+
optimizeTree: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51905
51972
|
'chunks',
|
|
51906
51973
|
'modules'
|
|
51907
51974
|
]),
|
|
51908
|
-
optimizeChunkModules: new AsyncSeriesBailHook([
|
|
51975
|
+
optimizeChunkModules: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
51909
51976
|
'chunks',
|
|
51910
51977
|
'modules'
|
|
51911
51978
|
]),
|
|
51912
|
-
beforeModuleIds: new SyncHook([
|
|
51979
|
+
beforeModuleIds: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51913
51980
|
'modules'
|
|
51914
51981
|
]),
|
|
51915
|
-
finishModules: new AsyncSeriesHook([
|
|
51982
|
+
finishModules: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
51916
51983
|
'modules'
|
|
51917
51984
|
]),
|
|
51918
|
-
chunkHash: new SyncHook([
|
|
51985
|
+
chunkHash: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51919
51986
|
'chunk',
|
|
51920
51987
|
'hash'
|
|
51921
51988
|
]),
|
|
51922
|
-
chunkAsset: new SyncHook([
|
|
51989
|
+
chunkAsset: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51923
51990
|
'chunk',
|
|
51924
51991
|
'filename'
|
|
51925
51992
|
]),
|
|
51926
|
-
processWarnings: new SyncWaterfallHook([
|
|
51993
|
+
processWarnings: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
51927
51994
|
'warnings'
|
|
51928
51995
|
]),
|
|
51929
|
-
succeedModule: new SyncHook([
|
|
51996
|
+
succeedModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51930
51997
|
'module'
|
|
51931
51998
|
]),
|
|
51932
|
-
stillValidModule: new SyncHook([
|
|
51999
|
+
stillValidModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51933
52000
|
'module'
|
|
51934
52001
|
]),
|
|
51935
|
-
statsPreset: new HookMap(()=>new SyncHook([
|
|
52002
|
+
statsPreset: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51936
52003
|
'options',
|
|
51937
52004
|
'context'
|
|
51938
52005
|
])),
|
|
51939
|
-
statsNormalize: new SyncHook([
|
|
52006
|
+
statsNormalize: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51940
52007
|
'options',
|
|
51941
52008
|
'context'
|
|
51942
52009
|
]),
|
|
51943
|
-
statsFactory: new SyncHook([
|
|
52010
|
+
statsFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51944
52011
|
'statsFactory',
|
|
51945
52012
|
'options'
|
|
51946
52013
|
]),
|
|
51947
|
-
statsPrinter: new SyncHook([
|
|
52014
|
+
statsPrinter: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51948
52015
|
'statsPrinter',
|
|
51949
52016
|
'options'
|
|
51950
52017
|
]),
|
|
51951
|
-
buildModule: new SyncHook([
|
|
52018
|
+
buildModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51952
52019
|
'module'
|
|
51953
52020
|
]),
|
|
51954
|
-
executeModule: new SyncHook([
|
|
52021
|
+
executeModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51955
52022
|
'options',
|
|
51956
52023
|
'context'
|
|
51957
52024
|
]),
|
|
51958
|
-
additionalTreeRuntimeRequirements: new SyncHook([
|
|
52025
|
+
additionalTreeRuntimeRequirements: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51959
52026
|
'chunk',
|
|
51960
52027
|
'runtimeRequirements'
|
|
51961
52028
|
]),
|
|
51962
|
-
runtimeRequirementInTree: new HookMap(()=>new SyncBailHook([
|
|
52029
|
+
runtimeRequirementInTree: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
51963
52030
|
'chunk',
|
|
51964
52031
|
'runtimeRequirements'
|
|
51965
52032
|
])),
|
|
51966
|
-
runtimeModule: new SyncHook([
|
|
52033
|
+
runtimeModule: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
51967
52034
|
'module',
|
|
51968
52035
|
'chunk'
|
|
51969
52036
|
]),
|
|
51970
|
-
seal: new SyncHook([]),
|
|
51971
|
-
afterSeal: new AsyncSeriesHook([]),
|
|
51972
|
-
needAdditionalPass: new SyncBailHook([])
|
|
52037
|
+
seal: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
52038
|
+
afterSeal: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([]),
|
|
52039
|
+
needAdditionalPass: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([])
|
|
51973
52040
|
};
|
|
51974
52041
|
const availableHooks = Object.keys(this.hooks);
|
|
51975
52042
|
this.hooks = new Proxy(this.hooks, {
|
|
@@ -53555,11 +53622,11 @@ Object.defineProperty(rspack_wasi_browser.NormalModule, 'getCompilationHooks', {
|
|
|
53555
53622
|
let hooks = compilationHooksMap.get(compilation);
|
|
53556
53623
|
if (void 0 === hooks) {
|
|
53557
53624
|
hooks = {
|
|
53558
|
-
loader: new SyncHook([
|
|
53625
|
+
loader: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
53559
53626
|
'loaderContext',
|
|
53560
53627
|
'module'
|
|
53561
53628
|
]),
|
|
53562
|
-
readResource: new HookMap(()=>new AsyncSeriesBailHook([
|
|
53629
|
+
readResource: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
53563
53630
|
'loaderContext'
|
|
53564
53631
|
]))
|
|
53565
53632
|
};
|
|
@@ -55234,7 +55301,8 @@ function getRawJavascriptParserOptions(parser) {
|
|
|
55234
55301
|
commonjsMagicComments: parser.commonjsMagicComments,
|
|
55235
55302
|
typeReexportsPresence: parser.typeReexportsPresence,
|
|
55236
55303
|
jsx: parser.jsx,
|
|
55237
|
-
deferImport: parser.deferImport
|
|
55304
|
+
deferImport: parser.deferImport,
|
|
55305
|
+
importMetaResolve: parser.importMetaResolve
|
|
55238
55306
|
};
|
|
55239
55307
|
}
|
|
55240
55308
|
function getRawAssetParserOptions(parser) {
|
|
@@ -55561,22 +55629,22 @@ const getPluginHooks = (compilation)=>{
|
|
|
55561
55629
|
let hooks = hooks_compilationHooksMap.get(compilation);
|
|
55562
55630
|
if (void 0 === hooks) {
|
|
55563
55631
|
hooks = {
|
|
55564
|
-
beforeAssetTagGeneration: new AsyncSeriesWaterfallHook([
|
|
55632
|
+
beforeAssetTagGeneration: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55565
55633
|
'data'
|
|
55566
55634
|
]),
|
|
55567
|
-
alterAssetTags: new AsyncSeriesWaterfallHook([
|
|
55635
|
+
alterAssetTags: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55568
55636
|
'data'
|
|
55569
55637
|
]),
|
|
55570
|
-
alterAssetTagGroups: new AsyncSeriesWaterfallHook([
|
|
55638
|
+
alterAssetTagGroups: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55571
55639
|
'data'
|
|
55572
55640
|
]),
|
|
55573
|
-
afterTemplateExecution: new AsyncSeriesWaterfallHook([
|
|
55641
|
+
afterTemplateExecution: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55574
55642
|
'data'
|
|
55575
55643
|
]),
|
|
55576
|
-
beforeEmit: new AsyncSeriesWaterfallHook([
|
|
55644
|
+
beforeEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55577
55645
|
'data'
|
|
55578
55646
|
]),
|
|
55579
|
-
afterEmit: new AsyncSeriesWaterfallHook([
|
|
55647
|
+
afterEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
55580
55648
|
'data'
|
|
55581
55649
|
])
|
|
55582
55650
|
};
|
|
@@ -55763,7 +55831,7 @@ class JavascriptModulesPlugin extends RspackBuiltinPlugin {
|
|
|
55763
55831
|
let hooks = JavascriptModulesPlugin_compilationHooksMap.get(compilation);
|
|
55764
55832
|
if (void 0 === hooks) {
|
|
55765
55833
|
hooks = {
|
|
55766
|
-
chunkHash: new SyncHook([
|
|
55834
|
+
chunkHash: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
55767
55835
|
'chunk',
|
|
55768
55836
|
'hash'
|
|
55769
55837
|
])
|
|
@@ -55911,19 +55979,19 @@ RsdoctorPlugin.getCompilationHooks = (compilation)=>{
|
|
|
55911
55979
|
let hooks = RsdoctorPlugin_compilationHooksMap.get(compilation);
|
|
55912
55980
|
if (void 0 === hooks) {
|
|
55913
55981
|
hooks = {
|
|
55914
|
-
moduleGraph: new AsyncSeriesBailHook([
|
|
55982
|
+
moduleGraph: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55915
55983
|
'moduleGraph'
|
|
55916
55984
|
]),
|
|
55917
|
-
chunkGraph: new AsyncSeriesBailHook([
|
|
55985
|
+
chunkGraph: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55918
55986
|
'chunkGraph'
|
|
55919
55987
|
]),
|
|
55920
|
-
moduleIds: new AsyncSeriesBailHook([
|
|
55988
|
+
moduleIds: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55921
55989
|
'moduleIdsPatch'
|
|
55922
55990
|
]),
|
|
55923
|
-
moduleSources: new AsyncSeriesBailHook([
|
|
55991
|
+
moduleSources: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55924
55992
|
'moduleSourcesPatch'
|
|
55925
55993
|
]),
|
|
55926
|
-
assets: new AsyncSeriesBailHook([
|
|
55994
|
+
assets: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
55927
55995
|
'assetPatch'
|
|
55928
55996
|
])
|
|
55929
55997
|
};
|
|
@@ -55979,19 +56047,19 @@ RuntimePlugin.getCompilationHooks = (compilation)=>{
|
|
|
55979
56047
|
let hooks = RuntimePlugin_compilationHooksMap.get(compilation);
|
|
55980
56048
|
if (void 0 === hooks) {
|
|
55981
56049
|
hooks = {
|
|
55982
|
-
createScript: new SyncWaterfallHook([
|
|
56050
|
+
createScript: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55983
56051
|
'code',
|
|
55984
56052
|
'chunk'
|
|
55985
56053
|
]),
|
|
55986
|
-
createLink: new SyncWaterfallHook([
|
|
56054
|
+
createLink: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55987
56055
|
'code',
|
|
55988
56056
|
'chunk'
|
|
55989
56057
|
]),
|
|
55990
|
-
linkPreload: new SyncWaterfallHook([
|
|
56058
|
+
linkPreload: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55991
56059
|
'code',
|
|
55992
56060
|
'chunk'
|
|
55993
56061
|
]),
|
|
55994
|
-
linkPrefetch: new SyncWaterfallHook([
|
|
56062
|
+
linkPrefetch: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncWaterfallHook([
|
|
55995
56063
|
'code',
|
|
55996
56064
|
'chunk'
|
|
55997
56065
|
])
|
|
@@ -56405,10 +56473,10 @@ class ContextModuleFactory {
|
|
|
56405
56473
|
hooks;
|
|
56406
56474
|
constructor(){
|
|
56407
56475
|
this.hooks = {
|
|
56408
|
-
beforeResolve: new AsyncSeriesWaterfallHook([
|
|
56476
|
+
beforeResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
56409
56477
|
'resolveData'
|
|
56410
56478
|
]),
|
|
56411
|
-
afterResolve: new AsyncSeriesWaterfallHook([
|
|
56479
|
+
afterResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesWaterfallHook([
|
|
56412
56480
|
'resolveData'
|
|
56413
56481
|
])
|
|
56414
56482
|
};
|
|
@@ -57848,6 +57916,7 @@ const applyJavascriptParserOptionsDefaults = (parserOptions, { deferImport, outp
|
|
|
57848
57916
|
D(parserOptions, 'typeReexportsPresence', 'no-tolerant');
|
|
57849
57917
|
D(parserOptions, 'jsx', false);
|
|
57850
57918
|
D(parserOptions, 'deferImport', deferImport);
|
|
57919
|
+
D(parserOptions, 'importMetaResolve', false);
|
|
57851
57920
|
};
|
|
57852
57921
|
const applyCssGeneratorOptionsDefaults = (generatorOptions, { targetProperties })=>{
|
|
57853
57922
|
D(generatorOptions, 'exportsOnly', !targetProperties || false === targetProperties.document);
|
|
@@ -58227,7 +58296,7 @@ const applyOutputDefaults = (options, { context, targetProperties: tp, isAffecte
|
|
|
58227
58296
|
});
|
|
58228
58297
|
D(output, 'bundlerInfo', {});
|
|
58229
58298
|
if ('object' == typeof output.bundlerInfo) {
|
|
58230
|
-
D(output.bundlerInfo, 'version', "2.0.0-beta.
|
|
58299
|
+
D(output.bundlerInfo, 'version', "2.0.0-beta.9");
|
|
58231
58300
|
D(output.bundlerInfo, 'bundler', 'rspack');
|
|
58232
58301
|
D(output.bundlerInfo, 'force', !output.library);
|
|
58233
58302
|
}
|
|
@@ -59725,22 +59794,22 @@ class NormalModuleFactory {
|
|
|
59725
59794
|
resolverFactory;
|
|
59726
59795
|
constructor(resolverFactory){
|
|
59727
59796
|
this.hooks = {
|
|
59728
|
-
resolveForScheme: new HookMap(()=>new AsyncSeriesBailHook([
|
|
59797
|
+
resolveForScheme: new __rspack_external__rspack_lite_tapable_c6bdf810.HookMap(()=>new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59729
59798
|
'resourceData'
|
|
59730
59799
|
])),
|
|
59731
|
-
beforeResolve: new AsyncSeriesBailHook([
|
|
59800
|
+
beforeResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59732
59801
|
'resolveData'
|
|
59733
59802
|
]),
|
|
59734
|
-
factorize: new AsyncSeriesBailHook([
|
|
59803
|
+
factorize: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59735
59804
|
'resolveData'
|
|
59736
59805
|
]),
|
|
59737
|
-
resolve: new AsyncSeriesBailHook([
|
|
59806
|
+
resolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59738
59807
|
'resolveData'
|
|
59739
59808
|
]),
|
|
59740
|
-
afterResolve: new AsyncSeriesBailHook([
|
|
59809
|
+
afterResolve: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59741
59810
|
'resolveData'
|
|
59742
59811
|
]),
|
|
59743
|
-
createModule: new AsyncSeriesBailHook([
|
|
59812
|
+
createModule: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesBailHook([
|
|
59744
59813
|
'createData',
|
|
59745
59814
|
'resolveData'
|
|
59746
59815
|
])
|
|
@@ -59884,7 +59953,7 @@ class MultiStats {
|
|
|
59884
59953
|
return obj;
|
|
59885
59954
|
});
|
|
59886
59955
|
if (childOptions.version) {
|
|
59887
|
-
obj.rspackVersion = "2.0.0-beta.
|
|
59956
|
+
obj.rspackVersion = "2.0.0-beta.9";
|
|
59888
59957
|
obj.version = "5.75.0";
|
|
59889
59958
|
}
|
|
59890
59959
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join('');
|
|
@@ -60059,16 +60128,16 @@ class MultiCompiler {
|
|
|
60059
60128
|
return compiler;
|
|
60060
60129
|
});
|
|
60061
60130
|
this.hooks = {
|
|
60062
|
-
done: new SyncHook([
|
|
60131
|
+
done: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
60063
60132
|
'stats'
|
|
60064
60133
|
]),
|
|
60065
|
-
invalid: new MultiHook(normalizedCompilers.map((c)=>c.hooks.invalid)),
|
|
60066
|
-
run: new MultiHook(normalizedCompilers.map((c)=>c.hooks.run)),
|
|
60067
|
-
watchClose: new SyncHook([]),
|
|
60068
|
-
watchRun: new MultiHook(normalizedCompilers.map((c)=>c.hooks.watchRun)),
|
|
60069
|
-
beforeCompile: new MultiHook(normalizedCompilers.map((c)=>c.hooks.beforeCompile)),
|
|
60070
|
-
shutdown: new MultiHook(normalizedCompilers.map((c)=>c.hooks.shutdown)),
|
|
60071
|
-
infrastructureLog: new MultiHook(normalizedCompilers.map((c)=>c.hooks.infrastructureLog))
|
|
60134
|
+
invalid: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.invalid)),
|
|
60135
|
+
run: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.run)),
|
|
60136
|
+
watchClose: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
60137
|
+
watchRun: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.watchRun)),
|
|
60138
|
+
beforeCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.beforeCompile)),
|
|
60139
|
+
shutdown: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.shutdown)),
|
|
60140
|
+
infrastructureLog: new __rspack_external__rspack_lite_tapable_c6bdf810.MultiHook(normalizedCompilers.map((c)=>c.hooks.infrastructureLog))
|
|
60072
60141
|
};
|
|
60073
60142
|
this.compilers = normalizedCompilers;
|
|
60074
60143
|
this._options = {
|
|
@@ -61570,7 +61639,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
61570
61639
|
},
|
|
61571
61640
|
version: (object)=>{
|
|
61572
61641
|
object.version = "5.75.0";
|
|
61573
|
-
object.rspackVersion = "2.0.0-beta.
|
|
61642
|
+
object.rspackVersion = "2.0.0-beta.9";
|
|
61574
61643
|
},
|
|
61575
61644
|
env: (object, _compilation, _context, { _env })=>{
|
|
61576
61645
|
object.env = _env;
|
|
@@ -64370,91 +64439,91 @@ class Compiler {
|
|
|
64370
64439
|
this.#moduleExecutionResultsMap = new Map();
|
|
64371
64440
|
this.#ruleSet = new RuleSetCompiler();
|
|
64372
64441
|
this.hooks = {
|
|
64373
|
-
initialize: new SyncHook([]),
|
|
64374
|
-
shouldEmit: new SyncBailHook([
|
|
64442
|
+
initialize: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64443
|
+
shouldEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64375
64444
|
'compilation'
|
|
64376
64445
|
]),
|
|
64377
|
-
done: new AsyncSeriesHook([
|
|
64446
|
+
done: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64378
64447
|
'stats'
|
|
64379
64448
|
]),
|
|
64380
|
-
afterDone: new SyncHook([
|
|
64449
|
+
afterDone: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64381
64450
|
'stats'
|
|
64382
64451
|
]),
|
|
64383
|
-
beforeRun: new AsyncSeriesHook([
|
|
64452
|
+
beforeRun: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64384
64453
|
'compiler'
|
|
64385
64454
|
]),
|
|
64386
|
-
run: new AsyncSeriesHook([
|
|
64455
|
+
run: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64387
64456
|
'compiler'
|
|
64388
64457
|
]),
|
|
64389
|
-
emit: new AsyncSeriesHook([
|
|
64458
|
+
emit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64390
64459
|
'compilation'
|
|
64391
64460
|
]),
|
|
64392
|
-
assetEmitted: new AsyncSeriesHook([
|
|
64461
|
+
assetEmitted: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64393
64462
|
'file',
|
|
64394
64463
|
'info'
|
|
64395
64464
|
]),
|
|
64396
|
-
afterEmit: new AsyncSeriesHook([
|
|
64465
|
+
afterEmit: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64397
64466
|
'compilation'
|
|
64398
64467
|
]),
|
|
64399
|
-
thisCompilation: new SyncHook([
|
|
64468
|
+
thisCompilation: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64400
64469
|
'compilation',
|
|
64401
64470
|
'params'
|
|
64402
64471
|
]),
|
|
64403
|
-
compilation: new SyncHook([
|
|
64472
|
+
compilation: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64404
64473
|
'compilation',
|
|
64405
64474
|
'params'
|
|
64406
64475
|
]),
|
|
64407
|
-
invalid: new SyncHook([
|
|
64476
|
+
invalid: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64408
64477
|
'filename',
|
|
64409
64478
|
'changeTime'
|
|
64410
64479
|
]),
|
|
64411
|
-
compile: new SyncHook([
|
|
64480
|
+
compile: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64412
64481
|
'params'
|
|
64413
64482
|
]),
|
|
64414
|
-
infrastructureLog: new SyncBailHook([
|
|
64483
|
+
infrastructureLog: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64415
64484
|
'origin',
|
|
64416
64485
|
'type',
|
|
64417
64486
|
'args'
|
|
64418
64487
|
]),
|
|
64419
|
-
failed: new SyncHook([
|
|
64488
|
+
failed: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64420
64489
|
'error'
|
|
64421
64490
|
]),
|
|
64422
|
-
shutdown: new AsyncSeriesHook([]),
|
|
64423
|
-
normalModuleFactory: new SyncHook([
|
|
64491
|
+
shutdown: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([]),
|
|
64492
|
+
normalModuleFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64424
64493
|
'normalModuleFactory'
|
|
64425
64494
|
]),
|
|
64426
|
-
contextModuleFactory: new SyncHook([
|
|
64495
|
+
contextModuleFactory: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64427
64496
|
'contextModuleFactory'
|
|
64428
64497
|
]),
|
|
64429
|
-
watchRun: new AsyncSeriesHook([
|
|
64498
|
+
watchRun: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64430
64499
|
'compiler'
|
|
64431
64500
|
]),
|
|
64432
|
-
watchClose: new SyncHook([]),
|
|
64433
|
-
environment: new SyncHook([]),
|
|
64434
|
-
afterEnvironment: new SyncHook([]),
|
|
64435
|
-
afterPlugins: new SyncHook([
|
|
64501
|
+
watchClose: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64502
|
+
environment: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64503
|
+
afterEnvironment: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([]),
|
|
64504
|
+
afterPlugins: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64436
64505
|
'compiler'
|
|
64437
64506
|
]),
|
|
64438
|
-
afterResolvers: new SyncHook([
|
|
64507
|
+
afterResolvers: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncHook([
|
|
64439
64508
|
'compiler'
|
|
64440
64509
|
]),
|
|
64441
|
-
make: new AsyncParallelHook([
|
|
64510
|
+
make: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncParallelHook([
|
|
64442
64511
|
'compilation'
|
|
64443
64512
|
]),
|
|
64444
|
-
beforeCompile: new AsyncSeriesHook([
|
|
64513
|
+
beforeCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64445
64514
|
'params'
|
|
64446
64515
|
]),
|
|
64447
|
-
afterCompile: new AsyncSeriesHook([
|
|
64516
|
+
afterCompile: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64448
64517
|
'compilation'
|
|
64449
64518
|
]),
|
|
64450
|
-
finishMake: new AsyncSeriesHook([
|
|
64519
|
+
finishMake: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([
|
|
64451
64520
|
'compilation'
|
|
64452
64521
|
]),
|
|
64453
|
-
entryOption: new SyncBailHook([
|
|
64522
|
+
entryOption: new __rspack_external__rspack_lite_tapable_c6bdf810.SyncBailHook([
|
|
64454
64523
|
'context',
|
|
64455
64524
|
'entry'
|
|
64456
64525
|
]),
|
|
64457
|
-
additionalPass: new AsyncSeriesHook([])
|
|
64526
|
+
additionalPass: new __rspack_external__rspack_lite_tapable_c6bdf810.AsyncSeriesHook([])
|
|
64458
64527
|
};
|
|
64459
64528
|
const availableCompilerHooks = Object.keys(this.hooks);
|
|
64460
64529
|
this.hooks = new Proxy(this.hooks, {
|
|
@@ -64813,7 +64882,7 @@ class Compiler {
|
|
|
64813
64882
|
const rawOptions = getRawOptions(options, this);
|
|
64814
64883
|
rawOptions.__references = Object.fromEntries(this.#ruleSet.builtinReferences.entries());
|
|
64815
64884
|
rawOptions.__virtual_files = VirtualModulesPlugin.__internal__take_virtual_files(this);
|
|
64816
|
-
const instanceBinding = __webpack_require__("@rspack/binding?
|
|
64885
|
+
const instanceBinding = __webpack_require__("@rspack/binding?c40c");
|
|
64817
64886
|
this.#registers = this.#createHooksRegisters();
|
|
64818
64887
|
const inputFileSystem = this.inputFileSystem && ThreadsafeInputNodeFS.needsBinding(options.experiments.useInputFileSystem) ? ThreadsafeInputNodeFS.__to_binding(this.inputFileSystem) : void 0;
|
|
64819
64888
|
try {
|
|
@@ -64876,9 +64945,9 @@ class Compiler {
|
|
|
64876
64945
|
const hook = getHook();
|
|
64877
64946
|
if (!hook.isUsed()) return [];
|
|
64878
64947
|
const breakpoints = [
|
|
64879
|
-
minStage,
|
|
64948
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.minStage,
|
|
64880
64949
|
...stages,
|
|
64881
|
-
maxStage
|
|
64950
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.maxStage
|
|
64882
64951
|
];
|
|
64883
64952
|
const jsTaps = [];
|
|
64884
64953
|
for(let i = 0; i < breakpoints.length - 1; i++){
|
|
@@ -64891,7 +64960,7 @@ class Compiler {
|
|
|
64891
64960
|
const queried = hook.queryStageRange(stageRange);
|
|
64892
64961
|
if (queried.isUsed()) jsTaps.push({
|
|
64893
64962
|
function: createTap(queried),
|
|
64894
|
-
stage: safeStage(from + 1)
|
|
64963
|
+
stage: __rspack_external__rspack_lite_tapable_c6bdf810.safeStage(from + 1)
|
|
64895
64964
|
});
|
|
64896
64965
|
}
|
|
64897
64966
|
compiler.#decorateJsTaps(jsTaps);
|
|
@@ -64908,9 +64977,9 @@ class Compiler {
|
|
|
64908
64977
|
const map = getHookMap();
|
|
64909
64978
|
if (!map.isUsed()) return [];
|
|
64910
64979
|
const breakpoints = [
|
|
64911
|
-
minStage,
|
|
64980
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.minStage,
|
|
64912
64981
|
...stages,
|
|
64913
|
-
maxStage
|
|
64982
|
+
__rspack_external__rspack_lite_tapable_c6bdf810.maxStage
|
|
64914
64983
|
];
|
|
64915
64984
|
const jsTaps = [];
|
|
64916
64985
|
for(let i = 0; i < breakpoints.length - 1; i++){
|
|
@@ -64923,7 +64992,7 @@ class Compiler {
|
|
|
64923
64992
|
const queried = map.queryStageRange(stageRange);
|
|
64924
64993
|
if (queried.isUsed()) jsTaps.push({
|
|
64925
64994
|
function: createTap(queried),
|
|
64926
|
-
stage: safeStage(from + 1)
|
|
64995
|
+
stage: __rspack_external__rspack_lite_tapable_c6bdf810.safeStage(from + 1)
|
|
64927
64996
|
});
|
|
64928
64997
|
}
|
|
64929
64998
|
compiler.#decorateJsTaps(jsTaps);
|
|
@@ -66378,7 +66447,7 @@ function transformSync(source, options) {
|
|
|
66378
66447
|
const _options = JSON.stringify(options || {});
|
|
66379
66448
|
return rspack_wasi_browser.transformSync(source, _options);
|
|
66380
66449
|
}
|
|
66381
|
-
const exports_rspackVersion = "2.0.0-beta.
|
|
66450
|
+
const exports_rspackVersion = "2.0.0-beta.9";
|
|
66382
66451
|
const exports_version = "5.75.0";
|
|
66383
66452
|
const exports_WebpackError = Error;
|
|
66384
66453
|
const exports_config = {
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2426,33 +2426,34 @@ export interface RawJavascriptParserOptions {
|
|
|
2426
2426
|
worker?: Array<string>
|
|
2427
2427
|
overrideStrict?: string
|
|
2428
2428
|
importMeta?: string
|
|
2429
|
-
|
|
2430
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2431
|
-
* @experimental
|
|
2432
|
-
*/
|
|
2433
|
-
requireAlias?: boolean
|
|
2434
|
-
/**
|
|
2435
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2436
|
-
* @experimental
|
|
2437
|
-
*/
|
|
2438
|
-
requireAsExpression?: boolean
|
|
2439
|
-
/**
|
|
2440
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2441
|
-
* @experimental
|
|
2442
|
-
*/
|
|
2443
|
-
requireDynamic?: boolean
|
|
2444
|
-
/**
|
|
2445
|
-
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2446
|
-
* @experimental
|
|
2447
|
-
*/
|
|
2448
|
-
requireResolve?: boolean
|
|
2429
|
+
commonjsMagicComments?: boolean
|
|
2449
2430
|
commonjs?: boolean | { exports?: boolean | 'skipInEsm' }
|
|
2431
|
+
deferImport?: boolean
|
|
2432
|
+
/**
|
|
2433
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2434
|
+
* @experimental
|
|
2435
|
+
*/
|
|
2436
|
+
requireAlias?: boolean
|
|
2437
|
+
/**
|
|
2438
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2439
|
+
* @experimental
|
|
2440
|
+
*/
|
|
2441
|
+
requireAsExpression?: boolean
|
|
2442
|
+
/**
|
|
2443
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2444
|
+
* @experimental
|
|
2445
|
+
*/
|
|
2446
|
+
requireDynamic?: boolean
|
|
2447
|
+
/**
|
|
2448
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2449
|
+
* @experimental
|
|
2450
|
+
*/
|
|
2451
|
+
requireResolve?: boolean
|
|
2450
2452
|
/**
|
|
2451
2453
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2452
2454
|
* @experimental
|
|
2453
2455
|
*/
|
|
2454
2456
|
importDynamic?: boolean
|
|
2455
|
-
commonjsMagicComments?: boolean
|
|
2456
2457
|
/**
|
|
2457
2458
|
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2458
2459
|
* @experimental
|
|
@@ -2463,7 +2464,11 @@ typeReexportsPresence?: string
|
|
|
2463
2464
|
* @experimental
|
|
2464
2465
|
*/
|
|
2465
2466
|
jsx?: boolean
|
|
2466
|
-
|
|
2467
|
+
/**
|
|
2468
|
+
* This option is experimental in Rspack only and subject to change or be removed anytime.
|
|
2469
|
+
* @experimental
|
|
2470
|
+
*/
|
|
2471
|
+
importMetaResolve?: boolean
|
|
2467
2472
|
}
|
|
2468
2473
|
|
|
2469
2474
|
export interface RawJsonGeneratorOptions {
|
package/dist/swc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TransformOutput } from './binding';
|
|
2
2
|
import type { JsMinifyOptions, Options as TransformOptions } from '@swc/types';
|
|
3
|
-
export type {
|
|
3
|
+
export type { JsMinifyOptions, TransformOptions, TransformOutput };
|
|
4
4
|
export declare function minify(source: string, options?: JsMinifyOptions): Promise<TransformOutput>;
|
|
5
5
|
export declare function minifySync(source: string, options?: JsMinifyOptions): TransformOutput;
|
|
6
6
|
export declare function transform(source: string, options?: TransformOptions): Promise<TransformOutput>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-debug/browser",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.9",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@napi-rs/wasm-runtime": "1.1.1",
|
|
33
33
|
"@rspack/lite-tapable": "1.1.0",
|
|
34
|
-
"@swc/types": "0.1.
|
|
34
|
+
"@swc/types": "0.1.26",
|
|
35
35
|
"@types/watchpack": "^2.4.5",
|
|
36
36
|
"memfs": "4.53.0",
|
|
37
37
|
"webpack-sources": "3.3.4"
|
package/dist/rslib-runtime.js
DELETED
|
@@ -1,65 +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].call(module.exports, module, module.exports, __webpack_require__);
|
|
10
|
-
return module.exports;
|
|
11
|
-
}
|
|
12
|
-
__webpack_require__.m = __webpack_modules__;
|
|
13
|
-
(()=>{
|
|
14
|
-
__webpack_require__.n = (module)=>{
|
|
15
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
16
|
-
__webpack_require__.d(getter, {
|
|
17
|
-
a: getter
|
|
18
|
-
});
|
|
19
|
-
return getter;
|
|
20
|
-
};
|
|
21
|
-
})();
|
|
22
|
-
(()=>{
|
|
23
|
-
__webpack_require__.d = (exports, definition)=>{
|
|
24
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) Object.defineProperty(exports, key, {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: definition[key]
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
(()=>{
|
|
31
|
-
__webpack_require__.add = function(modules) {
|
|
32
|
-
Object.assign(__webpack_require__.m, modules);
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
(()=>{
|
|
36
|
-
__webpack_require__.g = (()=>{
|
|
37
|
-
if ('object' == typeof globalThis) return globalThis;
|
|
38
|
-
try {
|
|
39
|
-
return this || new Function('return this')();
|
|
40
|
-
} catch (e) {
|
|
41
|
-
if ('object' == typeof window) return window;
|
|
42
|
-
}
|
|
43
|
-
})();
|
|
44
|
-
})();
|
|
45
|
-
(()=>{
|
|
46
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
47
|
-
})();
|
|
48
|
-
(()=>{
|
|
49
|
-
__webpack_require__.r = (exports)=>{
|
|
50
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports, Symbol.toStringTag, {
|
|
51
|
-
value: 'Module'
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, '__esModule', {
|
|
54
|
-
value: true
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
})();
|
|
58
|
-
(()=>{
|
|
59
|
-
__webpack_require__.nmd = (module)=>{
|
|
60
|
-
module.paths = [];
|
|
61
|
-
if (!module.children) module.children = [];
|
|
62
|
-
return module;
|
|
63
|
-
};
|
|
64
|
-
})();
|
|
65
|
-
export { __webpack_require__ };
|