mirror of
https://github.com/facebook/react.git
synced 2026-02-23 20:23:02 +00:00
Add and compile a simple hook with rollup and babel. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31165). * #31167 * #31166 * __->__ #31165
33 lines
980 B
JSON
33 lines
980 B
JSON
{
|
|
"name": "runtime-compat-lib",
|
|
"version": "0.0.0",
|
|
"description": "Testing ground for libraries compiled with React Compiler",
|
|
"main": "dist/index.js",
|
|
"scripts": {
|
|
"build": "rimraf dist && rollup --config --bundleConfigAsCjs",
|
|
"test": "echo 'no tests'"
|
|
},
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.25.7",
|
|
"@babel/core": "^7.25.7",
|
|
"@babel/preset-env": "^7.25.7",
|
|
"@rollup/plugin-babel": "^6.0.4",
|
|
"@rollup/plugin-json": "^6.1.0",
|
|
"babel-plugin-react-compiler": "0.0.0-experimental-58c2b1c-20241009",
|
|
"@rollup/plugin-terser": "^0.4.4",
|
|
"react": "19.0.0-beta-26f2496093-20240514",
|
|
"react-dom": "19.0.0-beta-26f2496093-20240514",
|
|
"rimraf": "5",
|
|
"rollup": "^4.22.4",
|
|
"rollup-plugin-banner2": "^1.2.3",
|
|
"rollup-plugin-prettier": "^4.1.1"
|
|
},
|
|
"dependencies": {
|
|
"react-compiler-runtime": "0.0.0-experimental-8d8e73f-20241009"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^18 || ^19"
|
|
}
|
|
}
|