-
Notifications
You must be signed in to change notification settings - Fork 36
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
svelte-style html files #46
Comments
Thanks for filing @brumm. There's no detective-html at the moment, but it would be cool to have one to serve your desired purpose. It could be as simple as only supporting embedded es6 instead of handling all module formats embedded in html. If you could somehow extract the JS code, generate the JS AST, then that could be used wholesale in filing-cabinet to resolve the imported modules for use in dependency-tree. If you want to tackle creating the detective-html package, I'd be very open to having it used within precinct. An aside: I don't think the precinct cli sets any of the supported precinct options, so beware when using that. |
Alright! Good to know. I'll take a look next week. Should really just be a matter of parsing the html and delegating to the respective detective (it even rhymes)
|
Any news? Want this for |
Upgrade versions
Hey,
I'm trying to extract dependencies from a svelte-style .html file.
It seems like precinct is trying to parse it like JSX:
This is the file content:
I think vue single file components look quite similarly.
I may have some time later this week to look into this myself, just wanted to document this somewhere.
The text was updated successfully, but these errors were encountered: