Suppoer transform options in playground website #1652
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for customizable TypeScript transform options in the playground UI, allowing users to adjust transformation settings through a new modal dialog. It also refactors the compiler service interface and related code to handle these options throughout the compile/transform/bundle flow. Additionally, it renames the output viewer component for clarity and updates dependencies.
Support for customizable transform options in the playground:
OptionsModalcomponent (OptionsModal.tsx) that lets users adjust TypeScript transform options (finite, numeric, functional, undefined) via a UI dialog. This modal is integrated into the playground and can be opened with a settings button. [1] [2] [3]ITransformOptions, ensuring that compile and transform actions use the selected options. [1] [2]Refactoring of compiler service interface and usage:
ICompilerServiceto accept apropsobject containing bothsourceand optionaloptions, and renamed output types fromIOutputtoIResultfor clarity. All calls to the compiler service now use this new interface. [1] [2] [3] [4] [5] [6]Component renaming and code clarity:
OutputViewercomponent toResultViewerfor improved clarity and updated all references accordingly. [1] [2] [3] [4]Dependency updates:
typedocdependency from0.28.8to0.28.9inpackage.json.