Skip to content

Commit

Permalink
[compiler] Scaffold fixture library (#31148)
Browse files Browse the repository at this point in the history
Scaffolds an empty library to test backwards compatibility with the
compiler enabled.
---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/31148).
* #31167
* #31166
* #31165
* #31164
* __->__ #31148
* #31168
  • Loading branch information
poteto authored Oct 10, 2024
1 parent 0f1127b commit b781c9f
Show file tree
Hide file tree
Showing 4 changed files with 1,691 additions and 0 deletions.
1 change: 1 addition & 0 deletions compiler/fixtures/runtime-compat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reference library compiled with React Compiler.
1 change: 1 addition & 0 deletions compiler/fixtures/runtime-compat/lib/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
throw new Error('Not implemented yet');
19 changes: 19 additions & 0 deletions compiler/fixtures/runtime-compat/lib/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "runtime-compat-lib",
"version": "0.0.0",
"description": "Testing ground for libraries compiled with React Compiler",
"main": "index.js",
"scripts": {
"test": "echo 'no tests'"
},
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.25.7",
"@babel/core": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"babel-plugin-react-compiler": "0.0.0-experimental-58c2b1c-20241009"
},
"dependencies": {
"react-compiler-runtime": "0.0.0-experimental-8d8e73f-20241009"
}
}
Loading

0 comments on commit b781c9f

Please sign in to comment.