Skip to content

Commit

Permalink
chore: use vite-plugin-vue-markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jun 18, 2022
1 parent 80c0e3b commit a2e3569
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/client/shim.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ declare interface Window {
// extend the window
}

// with vite-plugin-md, markdowns can be treat as Vue components
// with vite-plugin-vue-markdown, markdowns can be treat as Vue components
declare module '*.md' {
import type { ComponentOptions } from 'vue'
const component: ComponentOptions
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/node/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { dirname, join, resolve } from 'path'
import type Vue from '@vitejs/plugin-vue'
import type Icons from 'unplugin-icons/vite'
import type Components from 'unplugin-vue-components/vite'
import type Markdown from 'vite-plugin-md'
import type Markdown from 'vite-plugin-vue-markdown'
import type WindiCSS from 'vite-plugin-windicss'
import type RemoteAssets from 'vite-plugin-remote-assets'
import type ServerRef from 'vite-plugin-vue-server-ref'
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/node/plugins/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Markdown from 'vite-plugin-md'
import Markdown from 'vite-plugin-vue-markdown'
import type { Plugin } from 'vite'
import * as base64 from 'js-base64'
import { slash } from '@antfu/utils'
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"unplugin-icons": "^0.14.3",
"unplugin-vue-components": "^0.19.6",
"vite": "^2.9.9",
"vite-plugin-md": "^0.13.1",
"vite-plugin-remote-assets": "^0.2.2",
"vite-plugin-vue-markdown": "^0.1.0",
"vite-plugin-vue-server-ref": "^0.2.4",
"vite-plugin-windicss": "^1.8.4",
"vue": "^3.2.36",
Expand Down
31 changes: 15 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a2e3569

Please sign in to comment.