dillon1000/react

Commit

Reusable function for parsing config strings

Adds a helper function for parsing pragma strings to the compiler itself, and 
exports it. This will be used in follow-ups to make Snap, Sprout, and Playground 
all use the same pragma parser. The helper also starts from the default values, 
so adopting this will also make it easy for all those places to have the same 
defaults automatically.
Browse files
Changed paths4 files
First-parent comparison
M compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/index.ts ModifiedA compiler/packages/babel-plugin-react-forget/src/__tests__/parseConfigPragma-test.ts AddedM compiler/packages/babel-plugin-react-forget/src/index.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…