@rspack-canary/browser 1.5.0-canary-e5e47098-20250820070851 → 1.5.0-canary-efb61069-20250820113456

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.
@@ -5,8 +5,7 @@ export declare class ExternalsPlugin extends RspackBuiltinPlugin {
5
5
  #private;
6
6
  private type;
7
7
  private externals;
8
- private placeInInitial?;
9
8
  name: BuiltinPluginName;
10
- constructor(type: string, externals: Externals, placeInInitial?: boolean | undefined);
9
+ constructor(type: string, externals: Externals);
11
10
  raw(): BuiltinPlugin | undefined;
12
11
  }
package/dist/index.mjs CHANGED
@@ -40613,13 +40613,12 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
40613
40613
  type,
40614
40614
  externals: (Array.isArray(externals) ? externals : [
40615
40615
  externals
40616
- ]).filter(Boolean).map((item)=>ExternalsPlugin_class_private_field_get(this, _getRawExternalItem).call(this, item)),
40617
- placeInInitial: this.placeInInitial ?? false
40616
+ ]).filter(Boolean).map((item)=>ExternalsPlugin_class_private_field_get(this, _getRawExternalItem).call(this, item))
40618
40617
  };
40619
40618
  return createBuiltinPlugin(this.name, raw);
40620
40619
  }
40621
- constructor(type, externals, placeInInitial){
40622
- super(), ExternalsPlugin_class_private_method_init(this, _processRequest), ExternalsPlugin_define_property(this, "type", void 0), ExternalsPlugin_define_property(this, "externals", void 0), ExternalsPlugin_define_property(this, "placeInInitial", void 0), ExternalsPlugin_define_property(this, "name", void 0), ExternalsPlugin_class_private_field_init(this, _resolveRequestCache, {
40620
+ constructor(type, externals){
40621
+ super(), ExternalsPlugin_class_private_method_init(this, _processRequest), ExternalsPlugin_define_property(this, "type", void 0), ExternalsPlugin_define_property(this, "externals", void 0), ExternalsPlugin_define_property(this, "name", void 0), ExternalsPlugin_class_private_field_init(this, _resolveRequestCache, {
40623
40622
  writable: true,
40624
40623
  value: void 0
40625
40624
  }), ExternalsPlugin_class_private_field_init(this, _processResolveResult, {
@@ -40628,7 +40627,7 @@ class ExternalsPlugin extends RspackBuiltinPlugin {
40628
40627
  }), ExternalsPlugin_class_private_field_init(this, _getRawExternalItem, {
40629
40628
  writable: true,
40630
40629
  value: void 0
40631
- }), this.type = type, this.externals = externals, this.placeInInitial = placeInInitial, this.name = external_rspack_wasi_browser_js_.BuiltinPluginName.ExternalsPlugin, ExternalsPlugin_class_private_field_set(this, _resolveRequestCache, new Map()), ExternalsPlugin_class_private_field_set(this, _processResolveResult, (text)=>{
40630
+ }), this.type = type, this.externals = externals, this.name = external_rspack_wasi_browser_js_.BuiltinPluginName.ExternalsPlugin, ExternalsPlugin_class_private_field_set(this, _resolveRequestCache, new Map()), ExternalsPlugin_class_private_field_set(this, _processResolveResult, (text)=>{
40632
40631
  if (!text) return;
40633
40632
  let resolveRequest = ExternalsPlugin_class_private_field_get(this, _resolveRequestCache).get(text);
40634
40633
  if (!resolveRequest) {
@@ -47102,7 +47101,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
47102
47101
  if ("object" == typeof rspackFuture) {
47103
47102
  D(rspackFuture, "bundlerInfo", {});
47104
47103
  if ("object" == typeof rspackFuture.bundlerInfo) {
47105
- D(rspackFuture.bundlerInfo, "version", "1.5.0-canary-e5e47098-20250820070851");
47104
+ D(rspackFuture.bundlerInfo, "version", "1.5.0-canary-efb61069-20250820113456");
47106
47105
  D(rspackFuture.bundlerInfo, "bundler", "rspack");
47107
47106
  D(rspackFuture.bundlerInfo, "force", !library);
47108
47107
  }
@@ -51187,7 +51186,7 @@ class MultiStats {
51187
51186
  return obj;
51188
51187
  });
51189
51188
  if (childOptions.version) {
51190
- obj.rspackVersion = "1.5.0-canary-e5e47098-20250820070851";
51189
+ obj.rspackVersion = "1.5.0-canary-efb61069-20250820113456";
51191
51190
  obj.version = "5.75.0";
51192
51191
  }
51193
51192
  if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
@@ -52497,7 +52496,7 @@ const SIMPLE_EXTRACTORS = {
52497
52496
  },
52498
52497
  version: (object)=>{
52499
52498
  object.version = "5.75.0";
52500
- object.rspackVersion = "1.5.0-canary-e5e47098-20250820070851";
52499
+ object.rspackVersion = "1.5.0-canary-efb61069-20250820113456";
52501
52500
  },
52502
52501
  env: (object, _compilation, _context, { _env })=>{
52503
52502
  object.env = _env;
@@ -54108,14 +54107,14 @@ class RspackOptionsApply {
54108
54107
  compiler.outputFileSystem = browser_fs["default"];
54109
54108
  if (options.externals) {
54110
54109
  assert_default()(options.externalsType, "options.externalsType should have value after `applyRspackOptionsDefaults`");
54111
- new ExternalsPlugin(options.externalsType, options.externals, false).apply(compiler);
54110
+ new ExternalsPlugin(options.externalsType, options.externals).apply(compiler);
54112
54111
  }
54113
54112
  if (options.externalsPresets.node) new NodeTargetPlugin().apply(compiler);
54114
54113
  if (options.externalsPresets.electronMain) new ElectronTargetPlugin("main").apply(compiler);
54115
54114
  if (options.externalsPresets.electronPreload) new ElectronTargetPlugin("preload").apply(compiler);
54116
54115
  if (options.externalsPresets.electronRenderer) new ElectronTargetPlugin("renderer").apply(compiler);
54117
54116
  if (options.externalsPresets.electron && !options.externalsPresets.electronMain && !options.externalsPresets.electronPreload && !options.externalsPresets.electronRenderer) new ElectronTargetPlugin().apply(compiler);
54118
- if (options.externalsPresets.nwjs) new ExternalsPlugin("node-commonjs", "nw.gui", false).apply(compiler);
54117
+ if (options.externalsPresets.nwjs) new ExternalsPlugin("node-commonjs", "nw.gui").apply(compiler);
54119
54118
  if (options.externalsPresets.web || options.externalsPresets.webAsync || options.externalsPresets.node && options.experiments.css) new HttpExternalsRspackPlugin(!!options.experiments.css, !!options.externalsPresets.webAsync).apply(compiler);
54120
54119
  new ChunkPrefetchPreloadPlugin().apply(compiler);
54121
54120
  if (options.output.pathinfo) new ModuleInfoHeaderPlugin("verbose" === options.output.pathinfo).apply(compiler);
@@ -56863,7 +56862,7 @@ class ContainerReferencePlugin extends RspackBuiltinPlugin {
56863
56862
  i++;
56864
56863
  }
56865
56864
  }
56866
- new ExternalsPlugin(remoteType, remoteExternals, true).apply(compiler);
56865
+ new ExternalsPlugin(remoteType, remoteExternals).apply(compiler);
56867
56866
  new ShareRuntimePlugin(this._options.enhanced).apply(compiler);
56868
56867
  const rawOptions = {
56869
56868
  remoteType: this._options.remoteType,
@@ -56959,7 +56958,7 @@ function transformSync(source, options) {
56959
56958
  const _options = JSON.stringify(options || {});
56960
56959
  return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
56961
56960
  }
56962
- const exports_rspackVersion = "1.5.0-canary-e5e47098-20250820070851";
56961
+ const exports_rspackVersion = "1.5.0-canary-efb61069-20250820113456";
56963
56962
  const exports_version = "5.75.0";
56964
56963
  const exports_WebpackError = Error;
56965
56964
  const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
@@ -2144,7 +2144,6 @@ export interface RawExternalItemFnResult {
2144
2144
  export interface RawExternalsPluginOptions {
2145
2145
  type: string
2146
2146
  externals: (string | RegExp | Record<string, string | boolean | string[] | Record<string, string[]>> | ((...args: any[]) => any))[]
2147
- placeInInitial: boolean
2148
2147
  }
2149
2148
 
2150
2149
  export interface RawExternalsPresets {
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-canary/browser",
3
- "version": "1.5.0-canary-e5e47098-20250820070851",
3
+ "version": "1.5.0-canary-efb61069-20250820113456",
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.",