@rspack/core 0.6.4 → 0.6.5-canary-73c31ab-20240510004618

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 (58) hide show
  1. package/compiled/browserslist/index.d.ts +1 -0
  2. package/compiled/browserslist/index.js +2028 -0
  3. package/compiled/browserslist/license +20 -0
  4. package/compiled/browserslist/package.json +1 -0
  5. package/compiled/graceful-fs/index.d.ts +13 -0
  6. package/compiled/graceful-fs/index.js +1063 -0
  7. package/compiled/graceful-fs/license +15 -0
  8. package/compiled/graceful-fs/package.json +1 -0
  9. package/compiled/json-parse-even-better-errors/index.d.ts +1 -0
  10. package/compiled/json-parse-even-better-errors/index.js +193 -0
  11. package/compiled/json-parse-even-better-errors/package.json +1 -0
  12. package/compiled/neo-async/index.d.ts +685 -0
  13. package/compiled/neo-async/index.js +9207 -0
  14. package/compiled/neo-async/license +22 -0
  15. package/compiled/neo-async/package.json +1 -0
  16. package/compiled/watchpack/index.d.ts +216 -0
  17. package/compiled/watchpack/index.js +2075 -0
  18. package/compiled/watchpack/license +20 -0
  19. package/compiled/watchpack/package.json +1 -0
  20. package/compiled/zod/index.d.ts +1647 -0
  21. package/compiled/zod/index.js +4208 -0
  22. package/compiled/zod/license +21 -0
  23. package/compiled/zod/package.json +1 -0
  24. package/compiled/zod-validation-error/index.d.ts +188 -0
  25. package/compiled/zod-validation-error/index.js +4367 -0
  26. package/compiled/zod-validation-error/license +9 -0
  27. package/compiled/zod-validation-error/package.json +1 -0
  28. package/dist/ChunkGroup.d.ts +2 -0
  29. package/dist/ChunkGroup.js +4 -0
  30. package/dist/Compiler.d.ts +2 -2
  31. package/dist/MultiCompiler.js +1 -1
  32. package/dist/MultiWatching.js +1 -1
  33. package/dist/builtin-plugin/BannerPlugin.d.ts +1 -1
  34. package/dist/builtin-plugin/BannerPlugin.js +1 -1
  35. package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +1 -1
  36. package/dist/builtin-plugin/HtmlRspackPlugin.js +1 -1
  37. package/dist/builtin-plugin/IgnorePlugin.js +1 -1
  38. package/dist/builtin-plugin/SizeLimitsPlugin.d.ts +15 -0
  39. package/dist/builtin-plugin/SizeLimitsPlugin.js +9 -0
  40. package/dist/builtin-plugin/index.d.ts +1 -0
  41. package/dist/builtin-plugin/index.js +1 -0
  42. package/dist/config/browserslistTargetHandler.js +1 -1
  43. package/dist/config/defaults.js +15 -0
  44. package/dist/config/normalization.d.ts +2 -1
  45. package/dist/config/normalization.js +1 -0
  46. package/dist/config/zod.d.ts +60 -6
  47. package/dist/config/zod.js +16 -2
  48. package/dist/exports.d.ts +2 -0
  49. package/dist/exports.js +15 -10
  50. package/dist/lib/CacheFacade.js +1 -1
  51. package/dist/loader-runner/index.js +1 -1
  52. package/dist/node/NodeEnvironmentPlugin.js +1 -1
  53. package/dist/node/NodeWatchFileSystem.d.ts +3 -3
  54. package/dist/node/NodeWatchFileSystem.js +1 -1
  55. package/dist/rspackOptionsApply.js +4 -1
  56. package/dist/util/validate.d.ts +1 -1
  57. package/dist/util/validate.js +1 -1
  58. package/package.json +21 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/core",
3
- "version": "0.6.4",
3
+ "version": "0.6.5-canary-73c31ab-20240510004618",
4
4
  "webpackVersion": "5.75.0",
5
5
  "license": "MIT",
6
6
  "description": "A Fast Rust-based Web Bundler",
@@ -16,7 +16,8 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
- "hot"
19
+ "hot",
20
+ "compiled"
20
21
  ],
21
22
  "engines": {
22
23
  "node": ">=16.0.0"
@@ -30,27 +31,33 @@
30
31
  },
31
32
  "devDependencies": {
32
33
  "@swc/plugin-remove-console": "1.5.121",
34
+ "@types/neo-async": "^2.6.6",
33
35
  "@types/watchpack": "^2.4.0",
34
36
  "@types/webpack-sources": "3.2.3",
35
37
  "@types/ws": "8.5.10",
36
38
  "babel-loader": "^9.1.0",
37
39
  "babel-plugin-import": "^1.13.5",
40
+ "browserslist": "^4.21.3",
38
41
  "copy-webpack-plugin": "5.1.2",
39
42
  "cross-env": "^7.0.3",
40
43
  "del": "^6.0.0",
41
44
  "file-loader": "^6.2.0",
42
45
  "glob": "^10.3.10",
46
+ "graceful-fs": "4.2.10",
43
47
  "html-loader": "^5.0.0",
44
48
  "html-webpack-plugin": "^5.5.0",
45
49
  "identity-obj-proxy": "3.0.0",
46
50
  "jest-environment-jsdom": "^29",
47
51
  "jest-serializer-path": "^0.1.15",
48
52
  "jsdom": "^24.0.0",
53
+ "json-parse-even-better-errors": "^3.0.0",
49
54
  "less": "4.2.0",
50
55
  "less-loader": "^12.0.0",
56
+ "neo-async": "2.6.2",
51
57
  "node-polyfill-webpack-plugin": "3.0.0",
52
58
  "postcss-loader": "^8.0.0",
53
59
  "postcss-pxtorem": "^6.0.0",
60
+ "prebundle": "^1.1.0",
54
61
  "pug-loader": "^2.4.0",
55
62
  "react-relay": "^16.0.0",
56
63
  "sass": "1.56.2",
@@ -59,23 +66,21 @@
59
66
  "source-map-loader": "^5.0.0",
60
67
  "styled-components": "^6.0.8",
61
68
  "terser": "5.27.2",
69
+ "tsc-alias": "^1.8.8",
62
70
  "wast-loader": "^1.11.4",
63
- "@rspack/core": "0.6.4",
64
- "@rspack/plugin-minify": "^0.6.4"
71
+ "watchpack": "^2.4.0",
72
+ "zod": "^3.21.4",
73
+ "zod-validation-error": "1.3.1",
74
+ "@rspack/core": "0.6.5-canary-73c31ab-20240510004618",
75
+ "@rspack/plugin-minify": "^0.6.5-canary-73c31ab-20240510004618"
65
76
  },
66
77
  "dependencies": {
67
78
  "@module-federation/runtime-tools": "0.1.6",
68
- "browserslist": "^4.21.3",
79
+ "caniuse-lite": "^1.0.30001616",
69
80
  "enhanced-resolve": "5.12.0",
70
- "graceful-fs": "4.2.10",
71
- "json-parse-even-better-errors": "^3.0.0",
72
- "neo-async": "2.6.2",
73
81
  "tapable": "2.2.1",
74
- "watchpack": "^2.4.0",
75
82
  "webpack-sources": "3.2.3",
76
- "zod": "^3.21.4",
77
- "zod-validation-error": "1.3.1",
78
- "@rspack/binding": "0.6.4"
83
+ "@rspack/binding": "0.6.5-canary-73c31ab-20240510004618"
79
84
  },
80
85
  "peerDependencies": {
81
86
  "@swc/helpers": ">=0.5.1"
@@ -86,8 +91,10 @@
86
91
  }
87
92
  },
88
93
  "scripts": {
89
- "build": "tsc -b ./tsconfig.build.json",
90
- "dev": "tsc -w",
94
+ "build": "prebundle && tsc -b ./tsconfig.build.json && tsc-alias -p tsconfig.build.json",
95
+ "build:force": "prebundle && tsc -b ./tsconfig.build.json --force && tsc-alias -p tsconfig.build.json",
96
+ "dev": "prebundle && tsc -w",
97
+ "doc-coverage": "node scripts/check-documentation-coverage.mjs",
91
98
  "api-extractor": "api-extractor run --verbose",
92
99
  "api-extractor:ci": "api-extractor run --verbose || diff temp/api.md etc/api.md"
93
100
  }