dillon1000/react
Commit
Browse files import runtime from "React.unstable_ForgetRuntime"
Imports the runtime from `React.unstable_ForgetRuntime` rather than from a separate module. The hope is that any code that gets transformed already has a dependency on React anyway, so we can avoid adding a new dependency that other systems don't know about. While here, i also cleaned up the `guardThrows` flag (we still parse it if present and warn, rather than throwing, to make it easier to adopt the latest version in various places).
Changed paths8 files
First-parent comparisoncompiler/forget/scripts/jest/e2e-forget.config.js ModifiedM compiler/forget/scripts/jest/makeTransform.js ModifiedA compiler/forget/scripts/jest/setupEnvE2E.js AddedM compiler/forget/src/BackEnd/JSGen.ts ModifiedM compiler/forget/src/CompilerFlags.ts ModifiedM compiler/forget/src/__tests__/CompilerOptions-test.ts ModifiedM compiler/forget/src/__tests__/e2e/hello.e2e.js ModifiedM compiler/forget/src/__tests__/e2e/update-button.e2e.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…