Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 189c1fe

Browse files
committed
fix(playground): fix route resolution for packages
1 parent 2df9e4e commit 189c1fe

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

playground/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
</head>
99
<body>
1010
<div id="app"></div>
11-
<script type="module" src="/src/main.ts"></script>
11+
<script type="module" src="./src/main.ts"></script>
1212
</body>
1313
</html>

vite.config.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,34 @@ const resolver = {
1919
CModalBody: 'c-modal',
2020
CModalFooter: 'c-modal',
2121
CModalCloseButton: 'c-modal',
22+
CAspectRatio: 'layout',
23+
CBadge: 'layout',
24+
CBox: 'layout',
25+
CSquare: 'layout',
26+
CCircle: 'layout',
27+
CCenter: 'layout',
28+
CContainer: 'layout',
29+
CDivider: 'layout',
30+
CGrid: 'layout',
31+
CGridItem: 'layout',
32+
CHeading: 'layout',
33+
CLink: 'layout',
34+
CLinkOverlay: 'layout',
35+
CLinkBox: 'layout',
36+
CList: 'layout',
37+
COrderedList: 'layout',
38+
CUnorderedList: 'layout',
39+
CListItem: 'layout',
40+
CListIcon: 'layout',
41+
CKbd: 'layout',
42+
CSimpleGrid: 'layout',
43+
CSpacer: 'layout',
44+
CStackDivider: 'layout',
45+
CStackItem: 'layout',
46+
CStack: 'layout',
47+
CHStack: 'layout',
48+
CVStack: 'layout',
49+
CText: 'layout',
2250
}
2351

2452
const __DEV__ = process.env.NODE_ENV !== 'production'

website/vite.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ const config: UserConfig = {
3131
'@': `${path.resolve(__dirname, 'src')}`,
3232
},
3333
},
34-
build: {
35-
target: 'modules',
36-
},
3734
plugins: [
3835
Vue({ include: [/\.vue$/, /\.mdx$/] }),
3936
VueMdx({

0 commit comments

Comments
 (0)