@rspack/browser 2.1.0-beta.0 → 2.1.0-rc.0

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.
@@ -3086,8 +3086,8 @@ export interface RawStatsOptions {
3086
3086
  export interface RawStorageOptions {
3087
3087
  type: "filesystem"
3088
3088
  directory: string
3089
- maxAge?: number
3090
- maxGenerations?: number
3089
+ maxAge: number
3090
+ maxGenerations: number
3091
3091
  }
3092
3092
 
3093
3093
  export interface RawSubresourceIntegrityPluginOptions {
@@ -9,10 +9,12 @@
9
9
  */
10
10
  import type Watchpack from 'watchpack';
11
11
  import type { FileSystemInfoEntry, InputFileSystem, Watcher, WatchFileSystem } from '../util/fs';
12
+ type WatchpackInstance = InstanceType<typeof Watchpack>;
12
13
  export default class NodeWatchFileSystem implements WatchFileSystem {
13
14
  inputFileSystem: InputFileSystem;
14
15
  watcherOptions: Watchpack.WatchOptions;
15
- watcher?: Watchpack;
16
+ watcher?: WatchpackInstance;
16
17
  constructor(inputFileSystem: InputFileSystem);
17
18
  watch(files: Iterable<string>, directories: Iterable<string>, missing: Iterable<string>, startTime: number, options: Watchpack.WatchOptions, callback: (error: Error | null, fileTimeInfoEntries: Map<string, FileSystemInfoEntry | 'ignore'>, contextTimeInfoEntries: Map<string, FileSystemInfoEntry | 'ignore'>, changedFiles: Set<string>, removedFiles: Set<string>) => void, callbackUndelayed: (fileName: string, changeTime: number) => void): Watcher;
18
19
  }
20
+ export {};
Binary file
@@ -1,7 +1,7 @@
1
1
  /*! LICENSE: wasi-worker-browser.mjs.LICENSE.txt */
2
2
  (()=>{
3
3
  var __webpack_modules__ = {
4
- "../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js" (module) {
4
+ 409 (module) {
5
5
  var process = module.exports = {};
6
6
  var cachedSetTimeout;
7
7
  var cachedClearTimeout;
@@ -139,7 +139,7 @@
139
139
  return module.exports;
140
140
  }
141
141
  (()=>{
142
- var wasi_threads_esm_bundler_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
142
+ var wasi_threads_esm_bundler_process = __webpack_require__(409);
143
143
  var _WebAssembly = "u" > typeof WebAssembly ? WebAssembly : "u" > typeof WXWebAssembly ? WXWebAssembly : void 0;
144
144
  var wasi_threads_esm_bundler_ENVIRONMENT_IS_NODE = 'object' == typeof wasi_threads_esm_bundler_process && null !== wasi_threads_esm_bundler_process && 'object' == typeof wasi_threads_esm_bundler_process.versions && null !== wasi_threads_esm_bundler_process.versions && 'string' == typeof wasi_threads_esm_bundler_process.versions.node;
145
145
  function getPostMessage(options) {
@@ -893,7 +893,7 @@
893
893
  };
894
894
  return tslib_es6_assign.apply(this, arguments);
895
895
  };
896
- var emnapi_core_esm_bundler_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
896
+ var emnapi_core_esm_bundler_process = __webpack_require__(409);
897
897
  var emnapi_core_esm_bundler_WebAssembly = "u" > typeof WebAssembly ? WebAssembly : "u" > typeof WXWebAssembly ? WXWebAssembly : void 0;
898
898
  function validateImports(imports) {
899
899
  if (imports && 'object' != typeof imports) throw new TypeError('imports must be an object or undefined');
@@ -7075,7 +7075,7 @@
7075
7075
  };
7076
7076
  return MessageHandler;
7077
7077
  }(wasi_threads_esm_bundler_ThreadMessageHandler);
7078
- var wasm_util_esm_bundler_process = __webpack_require__("../../node_modules/.pnpm/process@0.11.10/node_modules/process/browser.js");
7078
+ var wasm_util_esm_bundler_process = __webpack_require__(409);
7079
7079
  const wasm_util_esm_bundler_WebAssembly = "u" > typeof WebAssembly ? WebAssembly : "u" > typeof WXWebAssembly ? WXWebAssembly : void 0;
7080
7080
  if (!wasm_util_esm_bundler_WebAssembly) throw new Error('WebAssembly is not supported in this environment');
7081
7081
  function wasm_util_esm_bundler_validateObject(value, name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/browser",
3
- "version": "2.1.0-beta.0",
3
+ "version": "2.1.0-rc.0",
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.",
@@ -35,7 +35,7 @@
35
35
  "@rspack/lite-tapable": "1.1.2",
36
36
  "@swc/types": "0.1.27",
37
37
  "memfs": "4.57.7",
38
- "webpack-sources": "3.3.4"
38
+ "webpack-sources": "3.5.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@swc/helpers": "^0.5.23"