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

fix: edge case of compiler (#3112)

上级 29dfa910
......@@ -9,7 +9,7 @@ export function rewriteCompilerSfcParse() {
const compilerSfc = require(resolveBuiltIn('@vue/compiler-sfc'))
const { parse } = compilerSfc
compilerSfc.parse = (source: string, options: SFCParseOptions) => {
if (options.filename) {
if (options?.filename) {
const extname = path.extname(options.filename)
// wxs、filter、renderjs
if (extname && !EXTNAME_VUE.includes(extname)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册