提交 63a3eedc 编写于 作者: fxy060608's avatar fxy060608

fix(nvue): preprocess

上级 7afb1769
......@@ -8,7 +8,7 @@ import {
import { normalizePreprocessErrMsg } from '../../utils/preprocess'
const utils = require('loader-utils')
function preprocessLoader(this: LoaderContext<{}>, content: string, map: any) {
if (content.indexOf('#ifdef') === -1) {
if (!content.includes('#endif')) {
return this.callback(null, content, map)
}
const types: ('js' | 'html' | 'css' | 'json')[] = utils.getOptions(this)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册