dillon1000/react
Commit
Browse files Fix to only add imports if we compiled something
We should only add imports if we actually compiled anything, this is what caused the internal issue despite the file in question not having any functions opted-in to compilation.
Changed paths5 files
First-parent comparisoncompiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts ModifiedD compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.gating-with-no-compiled-functions.expect.md DeletedA compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-no-gating-import-without-compiled-functions.expect.md AddedR compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.gating-with-no-compiled-functions.js →compiler/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/repro-no-gating-import-without-compiled-functions.js RenamedM compiler/packages/sprout/src/SproutTodoFilter.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…