@rspack-debug/core 2.0.0-rc.2 → 2.0.0-rc.3

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.
@@ -83,5 +83,4 @@ export * from './SplitChunksPlugin.js';
83
83
  export * from './SubresourceIntegrityPlugin.js';
84
84
  export * from './SwcJsMinimizerPlugin.js';
85
85
  export * from './URLPlugin.js';
86
- export * from './WebWorkerTemplatePlugin.js';
87
86
  export * from './WorkerPlugin.js';
@@ -10,7 +10,7 @@
10
10
  import type { ReadStream } from 'node:fs';
11
11
  import type { IncomingMessage, ServerResponse } from 'node:http';
12
12
  import type { ServerOptions } from 'node:https';
13
- import type { Server as ConnectApplication, NextFunction } from '../../compiled/connect-next/index.js';
13
+ import type { NextFunction } from '../../compiled/connect-next/index.js';
14
14
  import type { Filter as ProxyFilter, Options as ProxyOptions } from '../../compiled/http-proxy-middleware/index.js';
15
15
  import type { Options as OpenOptions } from '../../compiled/open/index.js';
16
16
  import type { Compiler, Configuration, LiteralUnion, MultiCompiler, MultiStats, Stats, Watching } from '../index.js';
@@ -153,7 +153,7 @@ export type DevServerClient = {
153
153
  webSocketTransport?: LiteralUnion<'ws', string>;
154
154
  webSocketURL?: string | DevServerWebSocketURL;
155
155
  };
156
- export type DevServerOptions<A extends BasicApplication = ConnectApplication, S extends BasicServer = BasicServer> = {
156
+ export type DevServerOptions<A extends BasicApplication = BasicApplication, S extends BasicServer = BasicServer> = {
157
157
  ipc?: string | boolean;
158
158
  host?: DevServerHost;
159
159
  port?: Port;
@@ -153,7 +153,7 @@ export type EntryStatic = EntryObject | EntryUnnamed;
153
153
  export type EntryDynamic = () => EntryStatic | Promise<EntryStatic>;
154
154
  /** The entry options for building */
155
155
  export type Entry = EntryStatic | EntryDynamic;
156
- /** The output directory as an absolute path. */
156
+ /** The output directory. Relative paths are resolved against `context`. */
157
157
  export type Path = string;
158
158
  /** Tells Rspack to include comments in bundles with information about the contained modules. */
159
159
  export type Pathinfo = boolean | 'verbose';
@@ -210,7 +210,7 @@ export type WorkerPublicPath = string;
210
210
  /** Controls [Trusted Types](https://web.dev/articles/trusted-types) compatibility. */
211
211
  export type TrustedTypes = {
212
212
  /**
213
- * The name of the Trusted Types policy created by webpack to serve bundle chunks.
213
+ * The name of the Trusted Types policy created by Rspack to serve bundle chunks.
214
214
  */
215
215
  policyName?: string;
216
216
  /**
@@ -288,7 +288,7 @@ export type Environment = {
288
288
  module?: boolean;
289
289
  /**
290
290
  * Determines if the node: prefix is generated for core module imports in environments that support it.
291
- * This is only applicable to Webpack runtime code.
291
+ * This is only applicable to Rspack runtime code.
292
292
  * */
293
293
  nodePrefixForCoreModules?: boolean;
294
294
  /** The environment supports optional chaining ('obj?.a' or 'obj?.()'). */
@@ -298,7 +298,7 @@ export type Environment = {
298
298
  };
299
299
  export type Output = {
300
300
  /**
301
- * The output directory as an absolute path.
301
+ * The output directory. Relative paths are resolved against `context`.
302
302
  * @default path.resolve(process.cwd(), 'dist')
303
303
  * */
304
304
  path?: Path;
@@ -2241,13 +2241,13 @@ export type Watch = boolean;
2241
2241
  export type WatchOptions = {
2242
2242
  /**
2243
2243
  * Add a delay before rebuilding once the first file changed.
2244
- * This allows webpack to aggregate any other changes made during this time period into one rebuild.
2244
+ * This allows Rspack to aggregate any other changes made during this time period into one rebuild.
2245
2245
  * @default 5
2246
2246
  */
2247
2247
  aggregateTimeout?: number;
2248
2248
  /**
2249
2249
  * Follow symlinks while looking for files.
2250
- * This is usually not needed as webpack already resolves symlinks ('resolve.symlinks' and 'resolve.alias').
2250
+ * This is usually not needed as Rspack already resolves symlinks ('resolve.symlinks' and 'resolve.alias').
2251
2251
  */
2252
2252
  followSymlinks?: boolean;
2253
2253
  /**
@@ -2306,13 +2306,13 @@ export type Performance = false | {
2306
2306
  */
2307
2307
  hints?: false | 'warning' | 'error';
2308
2308
  /**
2309
- * File size limit (in bytes) when exceeded, that webpack will provide performance hints.
2310
- * @default 250000
2309
+ * File size limit (in bytes) when exceeded, Rspack will provide performance hints.
2310
+ * @default 307200 (300 KiB)
2311
2311
  */
2312
2312
  maxAssetSize?: number;
2313
2313
  /**
2314
2314
  * Total size of an entry point (in bytes).
2315
- * @default 250000
2315
+ * @default 512000 (500 KiB)
2316
2316
  */
2317
2317
  maxEntrypointSize?: number;
2318
2318
  };
package/dist/exports.d.ts CHANGED
@@ -57,9 +57,11 @@ export { LoaderOptionsPlugin } from './lib/LoaderOptionsPlugin.js';
57
57
  export { LoaderTargetPlugin } from './lib/LoaderTargetPlugin.js';
58
58
  export type { OutputFileSystem, WatchFileSystem } from './util/fs.js';
59
59
  import { FetchCompileAsyncWasmPlugin, lazyCompilationMiddleware, rsc, SubresourceIntegrityPlugin } from './builtin-plugin/index.js';
60
+ import JsonpTemplatePlugin from './web/JsonpTemplatePlugin.js';
60
61
  export { SubresourceIntegrityPlugin };
61
62
  interface Web {
62
63
  FetchCompileAsyncWasmPlugin: typeof FetchCompileAsyncWasmPlugin;
64
+ JsonpTemplatePlugin: typeof JsonpTemplatePlugin;
63
65
  }
64
66
  export declare const web: Web;
65
67
  import { NodeTargetPlugin } from './builtin-plugin/index.js';
@@ -98,7 +100,7 @@ interface JavaScript {
98
100
  JavascriptModulesPlugin: typeof JavascriptModulesPlugin;
99
101
  }
100
102
  export declare const javascript: JavaScript;
101
- import { WebWorkerTemplatePlugin } from './builtin-plugin/index.js';
103
+ import WebWorkerTemplatePlugin from './webworker/WebWorkerTemplatePlugin.js';
102
104
  interface Webworker {
103
105
  WebWorkerTemplatePlugin: typeof WebWorkerTemplatePlugin;
104
106
  }
package/dist/index.js CHANGED
@@ -5397,12 +5397,6 @@ let SwcJsMinimizerRspackPlugin = base_create(binding_namespaceObject.BuiltinPlug
5397
5397
  }
5398
5398
  };
5399
5399
  }, 'compilation'), URLPlugin = base_create(binding_namespaceObject.BuiltinPluginName.URLPlugin, ()=>{}, 'compilation');
5400
- class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
5401
- name = binding_namespaceObject.BuiltinPluginName.WebWorkerTemplatePlugin;
5402
- raw(compiler) {
5403
- return compiler.options.output.chunkLoading = "import-scripts", createBuiltinPlugin(this.name, void 0);
5404
- }
5405
- }
5406
5400
  class WorkerPlugin extends RspackBuiltinPlugin {
5407
5401
  chunkLoading;
5408
5402
  wasmLoading;
@@ -6795,7 +6789,11 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6795
6789
  return 'function' != typeof chunkFilename ? chunkFilename.replace(/\.[mc]?js(\?|$)/, '.css$1') : '[id].css';
6796
6790
  }), D(output, 'hotUpdateChunkFilename', `[id].[fullhash].hot-update.${output.module ? 'mjs' : 'js'}`), F(output, 'hotUpdateMainFilename', ()=>`[runtime].[fullhash].hot-update.${output.module ? 'json.mjs' : 'json'}`);
6797
6791
  let uniqueNameId = Template.toIdentifier(output.uniqueName);
6798
- F(output, 'hotUpdateGlobal', ()=>`rspackHotUpdate${uniqueNameId}`), F(output, 'chunkLoadingGlobal', ()=>`rspackChunk${uniqueNameId}`), D(output, 'assetModuleFilename', '[hash][ext][query]'), D(output, 'webassemblyModuleFilename', '[hash].module.wasm'), D(output, 'compareBeforeEmit', !0), F(output, 'path', ()=>node_path.join(process.cwd(), 'dist')), F(output, 'pathinfo', ()=>!1), D(output, 'publicPath', tp && (tp.document || tp.importScripts) ? 'auto' : ''), D(output, 'hashFunction', 'xxhash64'), D(output, 'hashDigest', 'hex'), D(output, 'hashDigestLength', 16), D(output, 'strictModuleErrorHandling', !1), F(output, 'chunkFormat', ()=>{
6792
+ if (F(output, 'hotUpdateGlobal', ()=>`rspackHotUpdate${uniqueNameId}`), F(output, 'chunkLoadingGlobal', ()=>`rspackChunk${uniqueNameId}`), D(output, 'assetModuleFilename', '[hash][ext][query]'), D(output, 'webassemblyModuleFilename', '[hash].module.wasm'), D(output, 'compareBeforeEmit', !0), output.path && !node_path.isAbsolute(output.path)) {
6793
+ if (!context) throw Error(`Invalid Rspack configuration: "context" must be a non-empty absolute path when "output.path" is relative, get "${context ?? ''}".`);
6794
+ output.path = node_path.resolve(context, output.path);
6795
+ }
6796
+ F(output, 'path', ()=>node_path.join(process.cwd(), 'dist')), F(output, 'pathinfo', ()=>!1), D(output, 'publicPath', tp && (tp.document || tp.importScripts) ? 'auto' : ''), D(output, 'hashFunction', 'xxhash64'), D(output, 'hashDigest', 'hex'), D(output, 'hashDigestLength', 16), D(output, 'strictModuleErrorHandling', !1), F(output, 'chunkFormat', ()=>{
6799
6797
  if (tp) {
6800
6798
  let helpMessage = isAffectedByBrowserslist ? "Make sure that your 'browserslist' includes only platforms that support these features or select an appropriate 'target' to allow selecting a chunk format by default. Alternatively specify the 'output.chunkFormat' directly." : "Select an appropriate 'target' to allow selecting one by default, or specify the 'output.chunkFormat' directly.";
6801
6799
  if (output.module) {
@@ -6867,7 +6865,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6867
6865
  return output.wasmLoading && enabledWasmLoadingTypes.add(output.wasmLoading), output.workerWasmLoading && enabledWasmLoadingTypes.add(output.workerWasmLoading), forEachEntry((desc)=>{
6868
6866
  desc.wasmLoading && enabledWasmLoadingTypes.add(desc.wasmLoading);
6869
6867
  }), Array.from(enabledWasmLoadingTypes);
6870
- }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-rc.2"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !1));
6868
+ }), D(output, 'bundlerInfo', {}), 'object' == typeof output.bundlerInfo && (D(output.bundlerInfo, 'version', "2.0.0-rc.3"), D(output.bundlerInfo, 'bundler', 'rspack'), D(output.bundlerInfo, 'force', !1));
6871
6869
  }, applyExternalsPresetsDefaults = (externalsPresets, { targetProperties, buildHttp, outputModule })=>{
6872
6870
  let isUniversal = (key)=>!!(outputModule && targetProperties && null === targetProperties[key]);
6873
6871
  D(externalsPresets, 'web', !buildHttp && targetProperties && (targetProperties.web || isUniversal('node'))), D(externalsPresets, 'node', targetProperties && (targetProperties.node || isUniversal('node'))), D(externalsPresets, 'electron', targetProperties && targetProperties.electron || isUniversal('electron')), D(externalsPresets, 'electronMain', targetProperties && !!targetProperties.electron && (targetProperties.electronMain || isUniversal('electronMain'))), D(externalsPresets, 'electronPreload', targetProperties && !!targetProperties.electron && (targetProperties.electronPreload || isUniversal('electronPreload'))), D(externalsPresets, 'electronRenderer', targetProperties && !!targetProperties.electron && (targetProperties.electronRenderer || isUniversal('electronRenderer'))), D(externalsPresets, 'nwjs', targetProperties && (targetProperties.nwjs || isUniversal('nwjs')));
@@ -6883,7 +6881,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
6883
6881
  }, applyNodeDefaults = (node, { outputModule, targetProperties })=>{
6884
6882
  !1 !== node && (F(node, 'global', ()=>(!targetProperties || !targetProperties.global) && 'warn'), F(node, '__dirname', ()=>targetProperties && targetProperties.node ? outputModule ? 'node-module' : 'eval-only' : 'warn-mock'), F(node, '__filename', ()=>targetProperties && targetProperties.node ? outputModule ? 'node-module' : 'eval-only' : 'warn-mock'));
6885
6883
  }, applyPerformanceDefaults = (performance, { production })=>{
6886
- !1 !== performance && (D(performance, 'maxAssetSize', 250000), D(performance, 'maxEntrypointSize', 250000), F(performance, 'hints', ()=>!!production && 'warning'));
6884
+ !1 !== performance && (D(performance, 'maxAssetSize', 307200), D(performance, 'maxEntrypointSize', 512000), F(performance, 'hints', ()=>!!production && 'warning'));
6887
6885
  }, applyOptimizationDefaults = (optimization, { production, development })=>{
6888
6886
  D(optimization, 'removeEmptyChunks', !0), D(optimization, 'mergeDuplicateChunks', !0), F(optimization, 'moduleIds', ()=>production ? 'deterministic' : development ? 'named' : 'natural'), F(optimization, 'chunkIds', ()=>production ? 'deterministic' : development ? 'named' : 'natural'), F(optimization, 'sideEffects', ()=>!!production || 'flag'), D(optimization, 'mangleExports', production), D(optimization, 'inlineExports', production), D(optimization, 'providedExports', !0), D(optimization, 'usedExports', production), D(optimization, 'innerGraph', production), D(optimization, 'emitOnErrors', !production), D(optimization, 'runtimeChunk', !1), D(optimization, 'realContentHash', production), D(optimization, 'avoidEntryIife', !1), D(optimization, 'minimize', production), D(optimization, 'concatenateModules', production), A(optimization, 'minimizer', ()=>[
6889
6887
  new SwcJsMinimizerRspackPlugin(),
@@ -8121,7 +8119,7 @@ class MultiStats {
8121
8119
  obj.children = this.stats.map((stat, idx)=>{
8122
8120
  let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
8123
8121
  return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
8124
- }), childOptions.version && (obj.rspackVersion = "2.0.0-rc.2", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8122
+ }), childOptions.version && (obj.rspackVersion = "2.0.0-rc.3", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(''));
8125
8123
  let mapError = (j, obj)=>({
8126
8124
  ...obj,
8127
8125
  compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
@@ -9392,7 +9390,7 @@ let iterateConfig = (config, options, fn)=>{
9392
9390
  object.hash = context.getStatsCompilation(compilation).hash;
9393
9391
  },
9394
9392
  version: (object)=>{
9395
- object.version = "5.75.0", object.rspackVersion = "2.0.0-rc.2";
9393
+ object.version = "5.75.0", object.rspackVersion = "2.0.0-rc.3";
9396
9394
  },
9397
9395
  env: (object, _compilation, _context, { _env })=>{
9398
9396
  object.env = _env;
@@ -10711,16 +10709,14 @@ class RspackOptionsApply {
10711
10709
  compiler.hooks.afterResolvers.call(compiler);
10712
10710
  }
10713
10711
  }
10714
- let ERROR_PREFIX = 'Invalid Rspack configuration:';
10712
+ let validateConfig_ERROR_PREFIX = 'Invalid Rspack configuration:';
10715
10713
  function validateRspackConfig(config) {
10716
10714
  (({ context })=>{
10717
- if (context && !isAbsolute(context)) throw Error(`${ERROR_PREFIX} "context" must be an absolute path, get "${context}".`);
10718
- })(config), (({ output })=>{
10719
- if (output?.path && !isAbsolute(output.path)) throw Error(`${ERROR_PREFIX} "output.path" must be an absolute path, get "${output.path}".`);
10715
+ if (context && !isAbsolute(context)) throw Error(`${validateConfig_ERROR_PREFIX} "context" must be an absolute path, get "${context}".`);
10720
10716
  })(config), (({ optimization })=>{
10721
10717
  if (optimization?.splitChunks) {
10722
10718
  let { minChunks } = optimization.splitChunks;
10723
- if (void 0 !== minChunks && minChunks < 1) throw Error(`${ERROR_PREFIX} "optimization.splitChunks.minChunks" must be greater than or equal to 1, get \`${minChunks}\`.`);
10719
+ if (void 0 !== minChunks && minChunks < 1) throw Error(`${validateConfig_ERROR_PREFIX} "optimization.splitChunks.minChunks" must be greater than or equal to 1, get \`${minChunks}\`.`);
10724
10720
  }
10725
10721
  })(config), (({ output, externals, externalsType })=>{
10726
10722
  let library = output?.library;
@@ -10733,7 +10729,7 @@ function validateRspackConfig(config) {
10733
10729
  'commonjs',
10734
10730
  'commonjs2',
10735
10731
  'amd'
10736
- ].some((key)=>void 0 === value[key])) throw Error(`${ERROR_PREFIX} External object must have "root", "commonjs", "commonjs2", "amd" properties when "libraryType" or "externalsType" is "umd", get: ${JSON.stringify(value, null, 2)}.`);
10732
+ ].some((key)=>void 0 === value[key])) throw Error(`${validateConfig_ERROR_PREFIX} External object must have "root", "commonjs", "commonjs2", "amd" properties when "libraryType" or "externalsType" is "umd", get: ${JSON.stringify(value, null, 2)}.`);
10737
10733
  };
10738
10734
  Array.isArray(externals) ? externals.forEach((external)=>checkExternalItem(external)) : checkExternalItem(externals);
10739
10735
  })(config);
@@ -11052,7 +11048,7 @@ class TraceHookPlugin {
11052
11048
  });
11053
11049
  }
11054
11050
  }
11055
- let CORE_VERSION = "2.0.0-rc.2", VFILES_BY_COMPILER = new WeakMap();
11051
+ let CORE_VERSION = "2.0.0-rc.3", VFILES_BY_COMPILER = new WeakMap();
11056
11052
  class VirtualModulesPlugin {
11057
11053
  #staticModules;
11058
11054
  #compiler;
@@ -13355,7 +13351,7 @@ async function transform(source, options) {
13355
13351
  let _options = JSON.stringify(options || {});
13356
13352
  return binding_default().transform(source, _options);
13357
13353
  }
13358
- let exports_rspackVersion = "2.0.0-rc.2", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13354
+ let exports_rspackVersion = "2.0.0-rc.3", exports_version = "5.75.0", exports_WebpackError = Error, exports_config = {
13359
13355
  getNormalizedRspackOptions: getNormalizedRspackOptions,
13360
13356
  applyRspackOptionsDefaults: applyRspackOptionsDefaults,
13361
13357
  getNormalizedWebpackOptions: getNormalizedRspackOptions,
@@ -13364,7 +13360,12 @@ let exports_rspackVersion = "2.0.0-rc.2", exports_version = "5.75.0", exports_We
13364
13360
  createHash: createHash_createHash,
13365
13361
  cleverMerge: cachedCleverMerge
13366
13362
  }, web = {
13367
- FetchCompileAsyncWasmPlugin: FetchCompileAsyncWasmPlugin
13363
+ FetchCompileAsyncWasmPlugin: FetchCompileAsyncWasmPlugin,
13364
+ JsonpTemplatePlugin: class {
13365
+ apply(compiler) {
13366
+ compiler.options.output.chunkLoading = 'jsonp', new ArrayPushCallbackChunkFormatPlugin().apply(compiler), new EnableChunkLoadingPlugin('jsonp').apply(compiler);
13367
+ }
13368
+ }
13368
13369
  }, exports_node = {
13369
13370
  NodeTargetPlugin: NodeTargetPlugin,
13370
13371
  NodeTemplatePlugin: class {
@@ -13390,7 +13391,11 @@ let exports_rspackVersion = "2.0.0-rc.2", exports_version = "5.75.0", exports_We
13390
13391
  EnableChunkLoadingPlugin: EnableChunkLoadingPlugin,
13391
13392
  JavascriptModulesPlugin: JavascriptModulesPlugin
13392
13393
  }, webworker = {
13393
- WebWorkerTemplatePlugin: WebWorkerTemplatePlugin
13394
+ WebWorkerTemplatePlugin: class {
13395
+ apply(compiler) {
13396
+ compiler.options.output.chunkLoading = "import-scripts", new ArrayPushCallbackChunkFormatPlugin().apply(compiler), new EnableChunkLoadingPlugin("import-scripts").apply(compiler);
13397
+ }
13398
+ }
13394
13399
  }, optimize = {
13395
13400
  LimitChunkCountPlugin: LimitChunkCountPlugin,
13396
13401
  RuntimeChunkPlugin: RuntimeChunkPlugin,
@@ -13406,7 +13411,7 @@ let exports_rspackVersion = "2.0.0-rc.2", exports_version = "5.75.0", exports_We
13406
13411
  }
13407
13412
  apply(compiler) {
13408
13413
  var options;
13409
- let { webpack } = compiler, paths = function(options, compiler) {
13414
+ let { rspack } = compiler, paths = function(options, compiler) {
13410
13415
  let runtimeToolsPath;
13411
13416
  if (options.implementation) runtimeToolsPath = options.implementation;
13412
13417
  else try {
@@ -13482,7 +13487,7 @@ let exports_rspackVersion = "2.0.0-rc.2", exports_version = "5.75.0", exports_We
13482
13487
  shared: this._options.shared,
13483
13488
  enhanced: !0
13484
13489
  };
13485
- new webpack.container.ModuleFederationPluginV1(v1Options).apply(compiler), this._options.manifest && new ModuleFederationManifestPlugin(this._options).apply(compiler);
13490
+ new rspack.container.ModuleFederationPluginV1(v1Options).apply(compiler), this._options.manifest && new ModuleFederationManifestPlugin(this._options).apply(compiler);
13486
13491
  }
13487
13492
  },
13488
13493
  ModuleFederationPluginV1: class {
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The following code is modified based on
3
+ * https://github.com/webpack/webpack/blob/4b4ca3b/lib/web/JsonpTemplatePlugin.js
4
+ *
5
+ * MIT Licensed
6
+ * Author Tobias Koppers @sokra
7
+ * Copyright (c) JS Foundation and other contributors
8
+ * https://github.com/webpack/webpack/blob/main/LICENSE
9
+ */
10
+ import type { Compiler } from '../Compiler.js';
11
+ export default class JsonpTemplatePlugin {
12
+ apply(compiler: Compiler): void;
13
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The following code is modified based on
3
+ * https://github.com/webpack/webpack/blob/4b4ca3b/lib/webworker/WebWorkerTemplatePlugin.js
4
+ *
5
+ * MIT Licensed
6
+ * Author Tobias Koppers @sokra
7
+ * Copyright (c) JS Foundation and other contributors
8
+ * https://github.com/webpack/webpack/blob/main/LICENSE
9
+ */
10
+ import type { Compiler } from '../Compiler.js';
11
+ export default class WebWorkerTemplatePlugin {
12
+ apply(compiler: Compiler): void;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack-debug/core",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0-rc.3",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "Fast Rust-based bundler for the web with a modernized webpack API",
@@ -59,7 +59,7 @@
59
59
  "webpack-sources": "3.3.4"
60
60
  },
61
61
  "dependencies": {
62
- "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-rc.2"
62
+ "@rspack/binding": "npm:@rspack-debug/binding@2.0.0-rc.3"
63
63
  },
64
64
  "peerDependencies": {
65
65
  "@module-federation/runtime-tools": "^0.24.1 || ^2.0.0",
@@ -1,7 +0,0 @@
1
- import { type BuiltinPlugin, BuiltinPluginName } from '@rspack/binding';
2
- import type { Compiler } from '../Compiler.js';
3
- import { RspackBuiltinPlugin } from './base.js';
4
- export declare class WebWorkerTemplatePlugin extends RspackBuiltinPlugin {
5
- name: BuiltinPluginName;
6
- raw(compiler: Compiler): BuiltinPlugin | undefined;
7
- }