You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During development of the React engine, which is necessarily much more complex than other engines, it was discovered that the default output formatter (which is tuned to indent HTML output only) was destructive to the display of React components, which are JSX, causing them all to appear on one line. Likewise, because React components are required to be mounted to a container element, which must be present in the rendered output, yet we would still like to display the HTML output on its own, engine formatters should be able to post-process markup however they wish.
Therefore, we need a way to provide hooks for engines to be able to do their own code formatting for each type of output file, and probably also add their own files to the output.
The text was updated successfully, but these errors were encountered:
geoffp
changed the title
Engines need to able to decide how code is formatted and output additional files
Engines need to able to decide how output files' code is formatted and add files
Oct 23, 2016
During development of the React engine, which is necessarily much more complex than other engines, it was discovered that the default output formatter (which is tuned to indent HTML output only) was destructive to the display of React components, which are JSX, causing them all to appear on one line. Likewise, because React components are required to be mounted to a container element, which must be present in the rendered output, yet we would still like to display the HTML output on its own, engine formatters should be able to post-process markup however they wish.
Therefore, we need a way to provide hooks for engines to be able to do their own code formatting for each type of output file, and probably also add their own files to the output.
The text was updated successfully, but these errors were encountered: