dillon1000/react

Commit

Fix for <fbt> with local import

Fbt violates the JSX spec by using a lowercase function as a tagname, even 
though lowercase names are reserved for builtins. Here we detect cases where 
there is an `<fbt>` tag where `fbt` is a local identifier and throw a todo.
Browse files
Changed paths3 files
First-parent comparison
M compiler/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/error.todo-locally-require-fbt.expect.md AddedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/fbt/error.todo-locally-require-fbt.js Added
Patch

Files changed

Rendering syntax-highlighted changes…