Skip to content

Commit

Permalink
improve transform-react-jsx typings
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 5, 2021
1 parent 42c9eda commit 17523e4
Show file tree
Hide file tree
Showing 7 changed files with 138 additions and 50 deletions.
2 changes: 2 additions & 0 deletions packages/babel-core/src/index.ts
Expand Up @@ -2,6 +2,8 @@ declare const PACKAGE_JSON: { name: string; version: string };
export const version = PACKAGE_JSON.version;

export { default as File } from "./transformation/file/file";
import { default as PluginPass } from "./transformation/plugin-pass";
export type { PluginPass };
export { default as buildExternalHelpers } from "./tools/build-external-helpers";
export { resolvePlugin, resolvePreset } from "./config/files";

Expand Down
@@ -0,0 +1 @@
var x = <div __self={self}></div>;
@@ -0,0 +1,4 @@
{
"throws": "__source and __self should not be defined in props and are reserved for internal usage",
"plugins": ["transform-react-jsx-development"]
}
@@ -0,0 +1 @@
var x = <div __source={source}></div>;
@@ -0,0 +1,4 @@
{
"throws": "__source and __self should not be defined in props and are reserved for internal usage",
"plugins": ["transform-react-jsx-development"]
}

0 comments on commit 17523e4

Please sign in to comment.