@rspack/browser 1.6.0-beta.0 → 1.6.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.
Files changed (43) hide show
  1. package/dist/Compilation.d.ts +13 -16
  2. package/dist/Compiler.d.ts +8 -0
  3. package/dist/MultiCompiler.d.ts +1 -0
  4. package/dist/MultiStats.d.ts +3 -2
  5. package/dist/RspackError.d.ts +3 -0
  6. package/dist/RuntimeGlobals.d.ts +3 -0
  7. package/dist/Watching.d.ts +9 -0
  8. package/dist/browser/fs.d.ts +2 -1
  9. package/dist/browser/index.d.ts +4 -0
  10. package/dist/builtin-plugin/EsmLibraryPlugin.d.ts +6 -0
  11. package/dist/builtin-plugin/InlineExportsPlugin.d.ts +9 -0
  12. package/dist/builtin-plugin/SubresourceIntegrityPlugin.d.ts +0 -1
  13. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +2 -1
  14. package/dist/builtin-plugin/css-extract/index.d.ts +2 -2
  15. package/dist/builtin-plugin/html-plugin/options.d.ts +0 -1
  16. package/dist/builtin-plugin/index.d.ts +1 -0
  17. package/dist/config/defaults.d.ts +0 -9
  18. package/dist/config/devServer.d.ts +8 -8
  19. package/dist/config/normalization.d.ts +2 -0
  20. package/dist/config/types.d.ts +47 -8
  21. package/dist/exports.d.ts +1 -3
  22. package/dist/index.mjs +21737 -11726
  23. package/dist/index.mjs.LICENSE.txt +9 -0
  24. package/dist/lib/Cache.d.ts +1 -1
  25. package/dist/loader-runner/ModuleError.d.ts +7 -1
  26. package/dist/loader-runner/service.d.ts +1 -1
  27. package/dist/napi-binding.d.ts +46 -32
  28. package/dist/rspack.wasi-browser.js +122 -101
  29. package/dist/rspack.wasm32-wasi.wasm +0 -0
  30. package/dist/stats/DefaultStatsFactoryPlugin.d.ts +16 -0
  31. package/dist/util/fs.d.ts +25 -2
  32. package/dist/util/index.d.ts +0 -3
  33. package/dist/util/source.d.ts +5 -6
  34. package/dist/util/validateConfig.d.ts +5 -0
  35. package/dist/wasi-worker-browser.mjs +23563 -6
  36. package/dist/wasi-worker-browser.mjs.LICENSE.txt +12 -0
  37. package/package.json +2 -1
  38. package/dist/loader-runner/ModuleWarning.d.ts +0 -7
  39. package/dist/schema/config.d.ts +0 -1029
  40. package/dist/schema/loaders.d.ts +0 -401
  41. package/dist/schema/plugins.d.ts +0 -166
  42. package/dist/schema/utils.d.ts +0 -4
  43. package/dist/schema/validate.d.ts +0 -9
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * The buffer module from node.js, for the browser.
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*! https://mths.be/punycode v1.4.1 by @mathias */
9
+
10
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
11
+
12
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/browser",
3
- "version": "1.6.0-beta.0",
3
+ "version": "1.6.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.",
@@ -16,6 +16,7 @@
16
16
  "types": "./dist/browser/index.d.ts",
17
17
  "default": "./dist/index.mjs"
18
18
  },
19
+ "./wasi-worker-browser.mjs": "./wasi-worker-browser.mjs",
19
20
  "./package.json": "./package.json"
20
21
  },
21
22
  "files": [
@@ -1,7 +0,0 @@
1
- import WebpackError from "../lib/WebpackError";
2
- export default class ModuleWarning extends WebpackError {
3
- error?: Error;
4
- constructor(err: Error, { from }?: {
5
- from?: string;
6
- });
7
- }