@rspack/core 1.0.0-beta.2 → 1.0.0-beta.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.
Files changed (53) hide show
  1. package/dist/Compilation.d.ts +20 -1
  2. package/dist/Compilation.js +109 -44
  3. package/dist/Compiler.d.ts +1 -0
  4. package/dist/Compiler.js +29 -24
  5. package/dist/MultiCompiler.js +10 -6
  6. package/dist/MultiStats.d.ts +1 -1
  7. package/dist/MultiStats.js +19 -16
  8. package/dist/NormalModule.js +3 -4
  9. package/dist/Stats.d.ts +1 -1
  10. package/dist/Template.d.ts +4 -4
  11. package/dist/Template.js +6 -4
  12. package/dist/Watching.js +3 -5
  13. package/dist/builtin-plugin/DynamicEntryPlugin.d.ts +11 -10
  14. package/dist/builtin-plugin/DynamicEntryPlugin.js +26 -15
  15. package/dist/builtin-plugin/EntryPlugin.d.ts +2 -2
  16. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.d.ts +21 -4
  17. package/dist/builtin-plugin/LightningCssMiminizerRspackPlugin.js +29 -5
  18. package/dist/builtin-plugin/SwcCssMinimizerPlugin.d.ts +4 -6
  19. package/dist/builtin-plugin/SwcJsMinimizerPlugin.d.ts +16 -10
  20. package/dist/builtin-plugin/SwcJsMinimizerPlugin.js +11 -9
  21. package/dist/builtin-plugin/css-extract/hmr/hotModuleReplacement.js +10 -6
  22. package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.d.ts +1 -1
  23. package/dist/builtin-plugin/css-extract/hmr/normalizeUrl.js +2 -2
  24. package/dist/builtin-plugin/css-extract/loader.js +1 -2
  25. package/dist/config/adapter.d.ts +2 -2
  26. package/dist/config/zod.d.ts +338 -62
  27. package/dist/config/zod.js +8 -5
  28. package/dist/exports.d.ts +4 -3
  29. package/dist/exports.js +5 -2
  30. package/dist/lib/Cache.js +6 -4
  31. package/dist/lib/CacheFacade.js +8 -9
  32. package/dist/lib/LoaderOptionsPlugin.d.ts +4 -2
  33. package/dist/lib/LoaderOptionsPlugin.js +0 -2
  34. package/dist/lib/cache/mergeEtags.d.ts +3 -3
  35. package/dist/lib/cache/mergeEtags.js +5 -3
  36. package/dist/loader-runner/index.js +4 -2
  37. package/dist/node/nodeConsole.js +5 -5
  38. package/dist/stats/DefaultStatsPresetPlugin.js +1 -3
  39. package/dist/stats/StatsFactory.js +3 -4
  40. package/dist/stats/StatsPrinter.js +3 -4
  41. package/dist/stats/statsFactoryUtils.d.ts +106 -19
  42. package/dist/util/assertNotNil.d.ts +1 -1
  43. package/dist/util/assetCondition.d.ts +2 -0
  44. package/dist/util/assetCondition.js +2 -0
  45. package/dist/util/cleverMerge.js +5 -4
  46. package/dist/util/createHash.js +10 -5
  47. package/dist/util/hash/wasm-hash.js +5 -4
  48. package/dist/util/identifier.d.ts +4 -4
  49. package/dist/util/identifier.js +10 -10
  50. package/dist/util/memoize.js +3 -2
  51. package/package.json +3 -3
  52. package/dist/builtin-plugin/css-extract/loader-options.json +0 -37
  53. package/dist/builtin-plugin/css-extract/plugin-options.json +0 -79
@@ -1,37 +0,0 @@
1
- {
2
- "title": "Mini CSS Extract Plugin Loader options",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "properties": {
6
- "publicPath": {
7
- "anyOf": [
8
- {
9
- "type": "string"
10
- },
11
- {
12
- "instanceof": "Function"
13
- }
14
- ],
15
- "description": "Specifies a custom public path for the external resources like images, files, etc inside CSS.",
16
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#publicpath"
17
- },
18
- "emit": {
19
- "type": "boolean",
20
- "description": "If true, emits a file (writes a file to the filesystem). If false, the plugin will extract the CSS but will not emit the file",
21
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#emit"
22
- },
23
- "esModule": {
24
- "type": "boolean",
25
- "description": "Generates JS modules that use the ES modules syntax.",
26
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#esmodule"
27
- },
28
- "layer": {
29
- "type": "string"
30
- },
31
- "defaultExport": {
32
- "type": "boolean",
33
- "description": "Duplicate the named export with CSS modules locals to the default export (only when `esModules: true` for css-loader).",
34
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#defaultexports"
35
- }
36
- }
37
- }
@@ -1,79 +0,0 @@
1
- {
2
- "title": "Mini CSS Extract Plugin options",
3
- "type": "object",
4
- "additionalProperties": false,
5
- "properties": {
6
- "filename": {
7
- "anyOf": [
8
- {
9
- "type": "string",
10
- "absolutePath": false,
11
- "minLength": 1
12
- },
13
- {
14
- "instanceof": "Function"
15
- }
16
- ],
17
- "description": "This option determines the name of each output CSS file.",
18
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#filename"
19
- },
20
- "chunkFilename": {
21
- "anyOf": [
22
- {
23
- "type": "string",
24
- "absolutePath": false,
25
- "minLength": 1
26
- },
27
- {
28
- "instanceof": "Function"
29
- }
30
- ],
31
- "description": "This option determines the name of non-entry chunk files.",
32
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#chunkfilename"
33
- },
34
- "experimentalUseImportModule": {
35
- "type": "boolean",
36
- "description": "Enable the experimental importModule approach instead of using child compilers. This uses less memory and is faster.",
37
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#experimentaluseimportmodule"
38
- },
39
- "ignoreOrder": {
40
- "type": "boolean",
41
- "description": "Remove Order Warnings.",
42
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#ignoreorder"
43
- },
44
- "insert": {
45
- "description": "Inserts the `link` tag at the given position for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
46
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#insert",
47
- "anyOf": [
48
- {
49
- "type": "string"
50
- },
51
- {
52
- "instanceof": "Function"
53
- }
54
- ]
55
- },
56
- "attributes": {
57
- "description": "Adds custom attributes to the `link` tag for non-initial (async) (https://webpack.js.org/concepts/under-the-hood/#chunks) CSS chunks.",
58
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#attributes",
59
- "type": "object"
60
- },
61
- "linkType": {
62
- "anyOf": [
63
- {
64
- "enum": ["text/css"]
65
- },
66
- {
67
- "type": "boolean"
68
- }
69
- ],
70
- "description": "This option allows loading asynchronous chunks with a custom link type",
71
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#linktype"
72
- },
73
- "runtime": {
74
- "type": "boolean",
75
- "description": "Enabled/Disables runtime generation. CSS will be still extracted and can be used for a custom loading methods.",
76
- "link": "https://github.com/webpack-contrib/mini-css-extract-plugin#noRuntime"
77
- }
78
- }
79
- }