dependents / dependents/node-precinct
svelte-style html files
- Dominant language
- JavaScript
- Stars
- 234
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Hey,
I'm trying to extract dependencies from a svelte-style .html file.
It seems like precinct is trying to parse it like JSX:
```
❯ env DEBUG=precinct npx precinct svelte/HelloWorld.html
precinct options given: { es6: {} } +0ms
precinct could not parse content: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...? (7:0) +8ms
[]
```
This is the file content:
```html
Hello {name}!
.container {
text-align: center;
margin-top: 2rem;
font-family: sans-serif;
}
import EditingMessage from './EditingMessage.html';
export default {
components: { EditingMessage }
}
```
I think [vue single file components](https://vuejs.org/v2/guide/single-file-components.html) look quite similarly.
I may have some time later this week to look into this myself, just wanted to document this somewhere.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.