Skip to content

Commit ee1cd54

Browse files
authored
build: Use automatic JSX runtime in babel (#1465)
#1450 removed an import of React which we allow w/ ESLint. Seems to be the first package outside of code-studio where we may have done that. The resulting build triggers an error b/c Babel was using the old runtime still. The e2e tests timed out on that branch b/c of this issue, not due to the flaky tests. This is something that would have been a bug in enterprise because we consume built packages there. The build system w/ e2e did actually surface the issue since we consume built packages in the code-studio build, we just didn't catch it and merged thinking it was flaky e2e tests. It's not a build failure, but previewing the build gives an error in the console panel before this change.
1 parent a189375 commit ee1cd54

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/babel-preset/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = api => ({
1616
include: ['@babel/plugin-proposal-class-properties'],
1717
},
1818
],
19-
'@babel/preset-react',
19+
['@babel/preset-react', { runtime: 'automatic' }],
2020
['@babel/preset-typescript', { allowDeclareFields: true }],
2121
],
2222
plugins: [

0 commit comments

Comments
 (0)