Skip to content

Commit ea9de6e

Browse files
committed
Update
[ghstack-poisoned]
2 parents 67c669b + 793a51d commit ea9de6e

19 files changed

+404
-395
lines changed

.github/workflows/runtime_build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
path: "**/node_modules"
3131
key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }}
3232
- run: yarn install --frozen-lockfile
33-
- run: yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci=github
33+
- run: NODE_ENV=development yarn build --index=${{ matrix.worker_id }} --total=20 --r=${{ matrix.release_channel }} --ci=github
3434
env:
3535
CI: github
3636
RELEASE_CHANNEL: ${{ matrix.release_channel }}

compiler/packages/babel-plugin-react-compiler/src/HIR/BuildHIR.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ function lowerStatement(
13321332
return;
13331333
}
13341334
case "TypeAlias":
1335+
case "TSInterfaceDeclaration":
13351336
case "TSTypeAliasDeclaration": {
13361337
// We do not preserve type annotations/syntax through transformation
13371338
return;
@@ -1358,7 +1359,6 @@ function lowerStatement(
13581359
case "TSEnumDeclaration":
13591360
case "TSExportAssignment":
13601361
case "TSImportEqualsDeclaration":
1361-
case "TSInterfaceDeclaration":
13621362
case "TSModuleDeclaration":
13631363
case "TSNamespaceExportDeclaration":
13641364
case "WithStatement": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
## Input
3+
4+
```javascript
5+
function Foo() {
6+
type X = number;
7+
interface Bar {
8+
baz: number;
9+
}
10+
return 0;
11+
}
12+
13+
export const FIXTURE_ENTRYPOINT = {
14+
fn: Foo,
15+
params: [],
16+
};
17+
18+
```
19+
20+
## Code
21+
22+
```javascript
23+
function Foo() {
24+
return 0;
25+
}
26+
27+
export const FIXTURE_ENTRYPOINT = {
28+
fn: Foo,
29+
params: [],
30+
};
31+
32+
```
33+
34+
### Eval output
35+
(kind: ok) 0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
function Foo() {
2+
type X = number;
3+
interface Bar {
4+
baz: number;
5+
}
6+
return 0;
7+
}
8+
9+
export const FIXTURE_ENTRYPOINT = {
10+
fn: Foo,
11+
params: [],
12+
};

0 commit comments

Comments
 (0)