Skip to content

Commit eacac48

Browse files
fix: component exports (#166)
Co-authored-by: Farnabaz <farnabaz@gmail.com>
1 parent 7b43d13 commit eacac48

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ Now import the `useMarkdownParser` composable we just created along with an expo
373373
<script setup lang="ts">
374374
import { onBeforeMount, ref, watch } from 'vue'
375375
// Import package exports
376-
import { MDCRenderer } from '@nuxtjs/mdc/runtime/components/MDCRenderer'
376+
import MDCRenderer from '@nuxtjs/mdc/runtime/components/MDCRenderer.vue'
377377
import type { MDCParserResult } from '@nuxtjs/mdc/runtime/types/index'
378378
import { useMarkdownParser } from './composables/useMarkdownParser';
379379

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
"types": "./dist/runtime/index.d.ts",
2525
"import": "./dist/runtime/index.mjs"
2626
},
27+
"./runtime/components/*": {
28+
"types": "./dist/runtime/components/*.d.ts",
29+
"import": "./dist/runtime/components/*"
30+
},
31+
"./dist/runtime/components/*": {
32+
"types": "./dist/runtime/components/*.d.ts",
33+
"import": "./dist/runtime/components/*"
34+
},
2735
"./runtime/*": {
2836
"types": "./dist/runtime/*.d.ts",
2937
"import": "./dist/runtime/*.mjs"

0 commit comments

Comments
 (0)