dillon1000/react

Commit

[babel] Add panicOnBailout option

Adds an option to always throw errors regardless of severity (default, ie the 
status quo), or when the flag is disabled, only critical errors will be thrown. 
Any error that isn't considered a critical error (see 
`CompilerError.isCritical()`) since it might indicate that the compiler is 
buggy, while non-critical errors will result in that file being skipped for 
compilation, but otherwise continue compiling other files
Browse files
Changed paths7 files
First-parent comparison
M compiler/forget/src/Babel/BabelPlugin.ts ModifiedM compiler/forget/src/Babel/PluginOptions.ts ModifiedM compiler/forget/src/CompilerError.ts ModifiedM compiler/forget/src/__tests__/compiler-test.ts ModifiedM compiler/forget/src/__tests__/disableMemoizeJsxElements-test.ts ModifiedM compiler/forget/src/__tests__/fixtures/compiler/error.sketchy-code-use-forget.expect.md ModifiedM compiler/forget/src/__tests__/test-utils/generateTestsFromFixtures.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…