We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea04502 commit 5f24bb9Copy full SHA for 5f24bb9
src/index.ts
@@ -5,13 +5,15 @@ import { createMarkdown } from './core/markdown'
5
import { resolveOptions } from './core/options'
6
import type { Options } from './types'
7
8
+const cssIdRE = /\.(css|postcss|sass|scss|less|stylus|styl)($|\?)/
9
+
10
export const unpluginFactory: UnpluginFactory<Options> = (userOptions = {}) => {
11
const options = resolveOptions(userOptions)
12
const markdownToVue = createMarkdown(options)
13
14
const filter = createFilter(
15
userOptions.include || /\.md$|\.md\?vue/,
- userOptions.exclude,
16
+ userOptions.exclude || cssIdRE,
17
)
18
19
return {
0 commit comments