Skip to content

Commit

Permalink
[compiler] Scaffold fixture library
Browse files Browse the repository at this point in the history
Scaffolds a library to test backwards compatibility with the compiler enabled
  • Loading branch information
poteto committed Oct 9, 2024
1 parent d5bba18 commit df0d474
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 df0d474

Please sign in to comment.