-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Builder pattern from burr #24
Conversation
} catch (error) {} | ||
|
||
export const formatDTS = async (path: string, content: string): Promise<string> => { | ||
if (!hasPrettierInstalled) return content | ||
|
||
try { | ||
const prettier = await import("prettier") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this might have been slow because of the dynamic import?
|
speculative name for the builder: |
Sans prettier
With prettier
|
Explored a separate babel printer: https://github.com/putoutjs/printer - #25
its stricter about making perfect ASTs though, and so a bunch of code is lost |
Uses the new builder API I came up with for burr