vite-plugin-react-server
Version:
Vite plugin for React Server Components (RSC)
139 lines (138 loc) • 4.93 kB
JSON
{
"name": "vite-plugin-react-server",
"version": "1.0.3",
"description": "Vite plugin for React Server Components (RSC)",
"type": "module",
"main": "./dist/plugin/index.js",
"module": "./dist/plugin/index.js",
"types": "./dist/plugin/index.d.ts",
"files": [
"dist",
"plugin",
"bin",
"scripts",
"README.md",
"LICENSE",
"tsconfig.json"
],
"exports": {
".": "./dist/plugin/index.js",
"./client": "./dist/client.js",
"./server": "./dist/server.js",
"./static": "./dist/static.js",
"./html-worker": "./dist/plugin/worker/html-worker.js",
"./rsc-worker": "./dist/plugin/worker/rsc-worker.js",
"./loader": "./dist/plugin/worker/loader.js",
"./package.json": "./package.json",
"./patch": "./scripts/patch.mjs",
"./check-react-version": "./scripts/check-react-version.mjs",
"./css-loader": "./dist/plugin/loader/css-loader.js",
"./components": "./dist/plugin/components.js"
},
"typesVersions": {
"*": {
".": [
"./dist/plugin/index.d.ts"
],
"client": [
"./dist/plugin/react-client/plugin.d.ts"
],
"server": [
"./dist/plugin/react-server/plugin.d.ts"
],
"static": [
"./dist/plugin/static/plugin.d.ts"
],
"worker": [
"./dist/plugin/worker/worker.d.ts"
],
"loader": [
"./dist/plugin/worker/loader.d.ts"
],
"components": [
"./dist/plugin/components.d.ts"
]
}
},
"sideEffects": false,
"scripts": {
"version:major": "node scripts/bump-version.mjs major",
"version:minor": "node scripts/bump-version.mjs minor",
"version:patch": "node scripts/bump-version.mjs patch",
"build": "npm run clean && npm run build:types && npm run build:vite",
"build:types": "tsc --build --force",
"build:vite": "vite build && chmod +x bin/patch.mjs",
"clean": "rm -rf dist",
"prepublishOnly": "npm run build",
"lint": "eslint ./src --fix",
"test:server": "NODE_OPTIONS='--conditions react-server' vitest run",
"test:client": "vitest run",
"test": "npm run build && npm run test:client && NODE_ENV=development npm run test:server",
"test:coverage": "vitest run --coverage",
"test:ui": "vitest --ui",
"experimental:clean-install": "npm install react-server-dom-esm react@experimental react-dom@experimental && npm install react-server-dom-esm",
"experimental:copy": "cp -r ./oss-experimental/* ./node_modules/",
"experimental:patch": "npx patch-package react-server-dom-esm react react-dom --exclude 'nothing'",
"experimental:move-patches": "mv patches/* ./scripts/",
"experimental:setup": "rm -rf patches/* && npm run experimental:clean-install && npm run experimental:copy && npm run experimental:patch && npm run experimental:move-patches",
"experimental:patch-react": "npm run experimental:clean-install && node scripts/check-react-version.mjs && node bin/patch.mjs",
"postinstall": "patch-package"
},
"keywords": [
"vite",
"vite-plugin",
"react",
"rsc",
"server-components"
],
"author": "Nico Brinkkemper",
"license": "MIT",
"engines": {
"node": "^23.7.0"
},
"repository": {
"type": "git",
"url": "git+https://github.com/nicobrinkkemper/vite-plugin-react-server.git"
},
"bugs": {
"url": "https://github.com/nicobrinkkemper/vite-plugin-react-server/issues"
},
"homepage": "https://github.com/nicobrinkkemper/vite-plugin-react-server#readme",
"peerDependencies": {
"react": "^0.0.0-experimental-6aa8254b-20250312",
"react-dom": "^0.0.0-experimental-6aa8254b-20250312",
"vite": "*"
},
"peerDependenciesMeta": {
"react": {
"optional": false
},
"react-dom": {
"optional": false
},
"vite": {
"optional": false
}
},
"devDependencies": {
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"acorn-loose": "^8.3.0",
"happy-dom": "^17.1.8",
"patch-package": "^8.0.0",
"react-server-dom-esm": "^0.0.1",
"rollup": "^4.34.0",
"source-map": "^0.7.4",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vitest": "^3.0.4",
"webpack-sources": "^3.2.3"
},
"bin": {
"check-react-version": "./scripts/check-react-version.mjs",
"patch": "./bin/patch.mjs"
}
}