Skip to content

Commit 54893d9

Browse files
committed
feat: tranform for custom component loader
1 parent 890caac commit 54893d9

26 files changed

+165
-14
lines changed

β€Ž.eslintrc.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "@antfu/eslint-config"
2+
"extends": "@antfu/eslint-config",
3+
"rules": {
4+
"@typescript-eslint/no-unused-vars": "off"
5+
}
36
}
File renamed without changes.

β€Žtest/fixture/package.json renamed to β€Žexample/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"cross-env": "^7.0.2",
1515
"typescript": "^4.1.2",
1616
"vite": "^1.0.0-rc.13",
17-
"vite-plugin-components": "workspace:*"
17+
"vite-plugin-components": "workspace:*",
18+
"vite-plugin-md": "^0.1.2"
1819
}
1920
}

β€Žtest/fixture/src/App.vue renamed to β€Žexample/src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ComponentA msg="a" />
55
<component-b msg="b" />
66
<ComponentC msg="c" />
7-
<ComponentD/>
7+
<ComponentD />
88
<h3>Recursive Components</h3>
99
<recursive :data="tree" />
1010
</div>
@@ -18,6 +18,12 @@
1818
<!-- Global -->
1919
<Avatar />
2020
</div>
21+
22+
<div class="block">
23+
<h1>Markdown (2)</h1>
24+
<MarkdownA />
25+
<MarkdownB />
26+
</div>
2127
</template>
2228

2329
<script setup lang='ts'>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### This is a markdown component
2+
3+
- [ ] Check
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## A markdown component with Vue
2+
3+
> Component Start
4+
5+
<div style="padding: 0 10px">
6+
<ComponentA :msg="'from markdown'"/>
7+
</div>
8+
9+
> Component End

0 commit comments

Comments
Β (0)