Skip to content

Commit 746de83

Browse files
committed
chore: update build config
1 parent d532d98 commit 746de83

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

packages/mdc-syntax/build.config.mjs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,23 @@ export default defineBuildConfig({
1111
input: './src/vue',
1212
outDir: './dist/vue',
1313
},
14+
{
15+
type: 'transform',
16+
input: './src/utils',
17+
outDir: './dist/utils',
18+
},
1419
{
1520
type: 'bundle',
16-
input: './src/react/index.ts',
21+
input: [
22+
'./src/react/index.ts',
23+
'./src/react/components/MDC.tsx',
24+
'./src/react/components/MDCRenderer.tsx',
25+
'./src/react/components/index.tsx',
26+
'./src/react/components/stream.tsx',
27+
'./src/react/components/prose/ProsePre.tsx',
28+
'./src/react/components/prose/ProsePreShiki.tsx',
29+
],
1730
outDir: './dist',
18-
name: 'react/index',
1931
},
2032
],
2133
})

packages/mdc-syntax/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"./vue": "./dist/vue/index.mjs",
2020
"./vue/*": "./dist/vue/*.mjs",
2121
"./react": "./dist/react/index.mjs",
22+
"./react/*": "./dist/react/*.mjs",
2223
"./stream": "./dist/stream.mjs"
2324
},
2425
"main": "./dist/index.mjs",

0 commit comments

Comments
 (0)