dillon1000/react

Commit

[Fresh] Initial Babel plugin implementation (#15711)

* Add initial Babel plugin implementation

* Register exported functions

* Fix missing declarations

Always declare them at the bottom and rely on hoisting.

* Remove unused code

* Don't pass filename to tests

I've decided for now that the plugin doesn't need filename, and it will be handled by module runtime integration instead.

* Fix bugs

* Coalesce variable declarations
Browse files
Changed paths3 files
First-parent comparison
M packages/react-fresh/src/ReactFreshBabelPlugin.js ModifiedM packages/react-fresh/src/__tests__/ReactFreshBabelPlugin-test.js ModifiedM packages/react-fresh/src/__tests__/__snapshots__/ReactFreshBabelPlugin-test.js.snap Modified
Patch

Files changed

Rendering syntax-highlighted changes…