dillon1000/react

Commit

Make globals configurable; populate a reasonable default list

This is a precursor to validating that all identifiers are defined - we need to 
know about gobals and module declarations, so this PR adds the ability to 
configure a Set<string> of defined globals. The default list is inspired by the 
globals that prepack defines, which just comes from the spec definition.
Browse files
Changed paths5 files
First-parent comparison
M compiler/forget/src/Babel/PluginOptions.ts ModifiedM compiler/forget/src/CompilerPipeline.ts ModifiedM compiler/forget/src/HIR/Environment.ts ModifiedM compiler/forget/src/HIR/Globals.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…