phantom-build 0.2.0 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phantom-build",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Automatic code-splitting for React — extracts event handlers into lazy-loaded chunks and wraps below-fold components in React.lazy + Suspense at build time",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,6 +18,10 @@
18
18
  "types": "./dist/webpack.d.ts",
19
19
  "import": "./dist/webpack.js"
20
20
  },
21
+ "./rspack": {
22
+ "types": "./dist/rspack.d.ts",
23
+ "import": "./dist/rspack.js"
24
+ },
21
25
  "./runtime": {
22
26
  "types": "./dist/runtime/index.d.ts",
23
27
  "import": "./dist/runtime/index.js"
@@ -36,6 +40,11 @@
36
40
  "test:watch": "vitest",
37
41
  "typecheck": "tsc --noEmit",
38
42
  "lint": "eslint src/",
43
+ "prerelease": "npm run typecheck && npm test",
44
+ "release": "./scripts/release.sh",
45
+ "release:patch": "npm run prerelease && npm version patch && git push && git push --tags && npm publish",
46
+ "release:minor": "npm run prerelease && npm version minor && git push && git push --tags && npm publish",
47
+ "release:major": "npm run prerelease && npm version major && git push && git push --tags && npm publish",
39
48
  "prepublishOnly": "npm run build"
40
49
  },
41
50
  "repository": {
@@ -52,6 +61,7 @@
52
61
  "lazy-loading",
53
62
  "vite",
54
63
  "webpack",
64
+ "rspack",
55
65
  "build-plugin",
56
66
  "event-handlers",
57
67
  "performance",