Skip to content

Commit dbbc2bb

Browse files
committed
only generate ASTs and stats
1 parent 5fc4861 commit dbbc2bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ const preprocess = (data, text) => {
112112
// get information about the component
113113
let info;
114114
try {
115-
// compile the component
116-
info = compile(text, { dev: true, generate: 'ssr', onwarn: () => null });
115+
// get ASTs and stats for the component
116+
info = compile(text, { dev: true, generate: false, onwarn: () => {} });
117117
} catch ({ name, message, start }) {
118118
// convert the error to an eslint message, store it, and return
119119
data.messages = [

0 commit comments

Comments
 (0)