dillon1000/react
Commit
Browse files 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.
Changed paths4 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…