@rspack-canary/browser 1.5.8-canary-15732646-20250927173602 → 1.5.8-canary-f37fe028-20250928065933
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.
|
@@ -26,6 +26,7 @@ export * from "./EnableLibraryPlugin";
|
|
|
26
26
|
export * from "./EnableWasmLoadingPlugin";
|
|
27
27
|
export * from "./EnsureChunkConditionsPlugin";
|
|
28
28
|
export * from "./EntryPlugin";
|
|
29
|
+
export * from "./EsmLibraryPlugin";
|
|
29
30
|
export * from "./EvalDevToolModulePlugin";
|
|
30
31
|
export * from "./EvalSourceMapDevToolPlugin";
|
|
31
32
|
export * from "./ExternalsPlugin";
|
package/dist/exports.d.ts
CHANGED
|
@@ -57,7 +57,7 @@ export { EnvironmentPlugin } from "./lib/EnvironmentPlugin";
|
|
|
57
57
|
export { LoaderOptionsPlugin } from "./lib/LoaderOptionsPlugin";
|
|
58
58
|
export { LoaderTargetPlugin } from "./lib/LoaderTargetPlugin";
|
|
59
59
|
export type { OutputFileSystem } from "./util/fs";
|
|
60
|
-
import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
60
|
+
import { EsmLibraryPlugin, FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, SubresourceIntegrityPlugin } from "./builtin-plugin";
|
|
61
61
|
interface Web {
|
|
62
62
|
FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
|
|
63
63
|
}
|
|
@@ -143,6 +143,7 @@ interface Experiments {
|
|
|
143
143
|
cleanup: () => Promise<void>;
|
|
144
144
|
};
|
|
145
145
|
RemoveDuplicateModulesPlugin: typeof RemoveDuplicateModulesPlugin;
|
|
146
|
+
EsmLibraryPlugin: typeof EsmLibraryPlugin;
|
|
146
147
|
RsdoctorPlugin: typeof RsdoctorPlugin;
|
|
147
148
|
RstestPlugin: typeof RstestPlugin;
|
|
148
149
|
RslibPlugin: typeof RslibPlugin;
|
package/dist/index.mjs
CHANGED
|
@@ -37762,6 +37762,38 @@ class EnableLibraryPlugin extends builtin_plugin_base.Xj {
|
|
|
37762
37762
|
}
|
|
37763
37763
|
const EnableWasmLoadingPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.EnableWasmLoadingPlugin, (type)=>type);
|
|
37764
37764
|
const EnsureChunkConditionsPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.EnsureChunkConditionsPlugin, ()=>{});
|
|
37765
|
+
const RemoveDuplicateModulesPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
37766
|
+
function EsmLibraryPlugin_define_property(obj, key, value) {
|
|
37767
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
37768
|
+
value: value,
|
|
37769
|
+
enumerable: true,
|
|
37770
|
+
configurable: true,
|
|
37771
|
+
writable: true
|
|
37772
|
+
});
|
|
37773
|
+
else obj[key] = value;
|
|
37774
|
+
return obj;
|
|
37775
|
+
}
|
|
37776
|
+
class EsmLibraryPlugin {
|
|
37777
|
+
apply(compiler) {
|
|
37778
|
+
new RemoveDuplicateModulesPlugin().apply(compiler);
|
|
37779
|
+
const { splitChunks } = compiler.options.optimization;
|
|
37780
|
+
if (splitChunks) {
|
|
37781
|
+
splitChunks.chunks = "all";
|
|
37782
|
+
splitChunks.minSize = 0;
|
|
37783
|
+
}
|
|
37784
|
+
let err;
|
|
37785
|
+
if (err = checkConfig(compiler.options)) throw new src_0.WebpackError(`Conflicted config for ${EsmLibraryPlugin.PLUGIN_NAME}: ${err}`);
|
|
37786
|
+
compiler.__internal__registerBuiltinPlugin({
|
|
37787
|
+
name: external_rspack_wasi_browser_js_.BuiltinPluginName.EsmLibraryPlugin,
|
|
37788
|
+
options: {}
|
|
37789
|
+
});
|
|
37790
|
+
}
|
|
37791
|
+
}
|
|
37792
|
+
EsmLibraryPlugin_define_property(EsmLibraryPlugin, "PLUGIN_NAME", "EsmLibraryPlugin");
|
|
37793
|
+
function checkConfig(config) {
|
|
37794
|
+
if (config.optimization.concatenateModules) return "You should disable `config.optimization.concatenateModules`";
|
|
37795
|
+
if (false !== config.output.chunkFormat) return "You should disable default chunkFormat by `config.output.chunkFormat = false`";
|
|
37796
|
+
}
|
|
37765
37797
|
const EvalDevToolModulePlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.EvalDevToolModulePlugin, (options)=>options, "compilation");
|
|
37766
37798
|
const EvalSourceMapDevToolPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.EvalSourceMapDevToolPlugin, (options)=>options, "compilation");
|
|
37767
37799
|
var util_Buffer = __webpack_require__("./src/browser/buffer.ts")["Buffer"];
|
|
@@ -44976,7 +45008,6 @@ const ProvidePlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_j
|
|
|
44976
45008
|
return Object.fromEntries(entries);
|
|
44977
45009
|
}, "compilation");
|
|
44978
45010
|
const RealContentHashPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.RealContentHashPlugin, ()=>{}, "compilation");
|
|
44979
|
-
const RemoveDuplicateModulesPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.RemoveDuplicateModulesPlugin, ()=>({}));
|
|
44980
45011
|
const RemoveEmptyChunksPlugin = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.RemoveEmptyChunksPlugin, ()=>{}, "compilation");
|
|
44981
45012
|
const RsdoctorPluginImpl = (0, builtin_plugin_base.vt)(external_rspack_wasi_browser_js_.BuiltinPluginName.RsdoctorPlugin, function(c = {
|
|
44982
45013
|
moduleGraphFeatures: true,
|
|
@@ -46610,7 +46641,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
46610
46641
|
if ("object" == typeof rspackFuture) {
|
|
46611
46642
|
D(rspackFuture, "bundlerInfo", {});
|
|
46612
46643
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
46613
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-
|
|
46644
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.8-canary-f37fe028-20250928065933");
|
|
46614
46645
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
46615
46646
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
46616
46647
|
}
|
|
@@ -50711,7 +50742,7 @@ class MultiStats {
|
|
|
50711
50742
|
return obj;
|
|
50712
50743
|
});
|
|
50713
50744
|
if (childOptions.version) {
|
|
50714
|
-
obj.rspackVersion = "1.5.8-canary-
|
|
50745
|
+
obj.rspackVersion = "1.5.8-canary-f37fe028-20250928065933";
|
|
50715
50746
|
obj.version = "5.75.0";
|
|
50716
50747
|
}
|
|
50717
50748
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -50831,7 +50862,7 @@ function MultiWatching_define_property(obj, key, value) {
|
|
|
50831
50862
|
else obj[key] = value;
|
|
50832
50863
|
return obj;
|
|
50833
50864
|
}
|
|
50834
|
-
class
|
|
50865
|
+
class MultiWatching {
|
|
50835
50866
|
invalidate(callback) {
|
|
50836
50867
|
if (callback) asyncLib.each(this.watchings, (watching, callback)=>watching.invalidate(callback), callback);
|
|
50837
50868
|
else for (const watching of this.watchings)watching.invalidate();
|
|
@@ -50864,7 +50895,7 @@ class MultiWatching_MultiWatching {
|
|
|
50864
50895
|
this.compiler = compiler;
|
|
50865
50896
|
}
|
|
50866
50897
|
}
|
|
50867
|
-
const
|
|
50898
|
+
const src_MultiWatching = MultiWatching;
|
|
50868
50899
|
function ArrayQueue_define_property(obj, key, value) {
|
|
50869
50900
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
50870
50901
|
value: value,
|
|
@@ -51041,10 +51072,10 @@ class MultiCompiler {
|
|
|
51041
51072
|
if (compiler.watching !== watching) return;
|
|
51042
51073
|
if (!watching.running) watching.invalidate();
|
|
51043
51074
|
}, handler);
|
|
51044
|
-
this.watching = new
|
|
51075
|
+
this.watching = new src_MultiWatching(watchings, this);
|
|
51045
51076
|
return this.watching;
|
|
51046
51077
|
}
|
|
51047
|
-
this.watching = new
|
|
51078
|
+
this.watching = new src_MultiWatching([], this);
|
|
51048
51079
|
return this.watching;
|
|
51049
51080
|
}
|
|
51050
51081
|
run(callback, options) {
|
|
@@ -51925,6 +51956,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
51925
51956
|
LogType.warn,
|
|
51926
51957
|
LogType.info,
|
|
51927
51958
|
LogType.log,
|
|
51959
|
+
LogType.debug,
|
|
51928
51960
|
LogType.group,
|
|
51929
51961
|
LogType.groupEnd,
|
|
51930
51962
|
LogType.groupCollapsed,
|
|
@@ -52018,7 +52050,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
52018
52050
|
},
|
|
52019
52051
|
version: (object)=>{
|
|
52020
52052
|
object.version = "5.75.0";
|
|
52021
|
-
object.rspackVersion = "1.5.8-canary-
|
|
52053
|
+
object.rspackVersion = "1.5.8-canary-f37fe028-20250928065933";
|
|
52022
52054
|
},
|
|
52023
52055
|
env: (object, _compilation, _context, { _env })=>{
|
|
52024
52056
|
object.env = _env;
|
|
@@ -56482,7 +56514,7 @@ function transformSync(source, options) {
|
|
|
56482
56514
|
const _options = JSON.stringify(options || {});
|
|
56483
56515
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56484
56516
|
}
|
|
56485
|
-
const exports_rspackVersion = "1.5.8-canary-
|
|
56517
|
+
const exports_rspackVersion = "1.5.8-canary-f37fe028-20250928065933";
|
|
56486
56518
|
const exports_version = "5.75.0";
|
|
56487
56519
|
const exports_WebpackError = Error;
|
|
56488
56520
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
|
@@ -56550,6 +56582,7 @@ const exports_experiments = {
|
|
|
56550
56582
|
}
|
|
56551
56583
|
},
|
|
56552
56584
|
RemoveDuplicateModulesPlugin: RemoveDuplicateModulesPlugin,
|
|
56585
|
+
EsmLibraryPlugin: EsmLibraryPlugin,
|
|
56553
56586
|
RsdoctorPlugin: RsdoctorPlugin,
|
|
56554
56587
|
RstestPlugin: RstestPlugin,
|
|
56555
56588
|
RslibPlugin: RslibPlugin,
|
|
@@ -56653,6 +56686,7 @@ const src_fn = Object.assign(rspack_rspack, exports_namespaceObject);
|
|
|
56653
56686
|
src_fn.rspack = src_fn;
|
|
56654
56687
|
src_fn.webpack = src_fn;
|
|
56655
56688
|
const src_rspack = src_fn;
|
|
56689
|
+
const src_0 = src_rspack;
|
|
56656
56690
|
function BrowserHttpImportEsmPlugin_define_property(obj, key, value) {
|
|
56657
56691
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
56658
56692
|
value: value,
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -526,6 +526,7 @@ export declare enum BuiltinPluginName {
|
|
|
526
526
|
CommonJsChunkFormatPlugin = 'CommonJsChunkFormatPlugin',
|
|
527
527
|
ArrayPushCallbackChunkFormatPlugin = 'ArrayPushCallbackChunkFormatPlugin',
|
|
528
528
|
ModuleChunkFormatPlugin = 'ModuleChunkFormatPlugin',
|
|
529
|
+
EsmLibraryPlugin = 'EsmLibraryPlugin',
|
|
529
530
|
HotModuleReplacementPlugin = 'HotModuleReplacementPlugin',
|
|
530
531
|
LimitChunkCountPlugin = 'LimitChunkCountPlugin',
|
|
531
532
|
WorkerPlugin = 'WorkerPlugin',
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
3
|
-
"version": "1.5.8-canary-
|
|
3
|
+
"version": "1.5.8-canary-f37fe028-20250928065933",
|
|
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.",
|