We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69b30bd commit e3f4843Copy full SHA for e3f4843
lib/mp-compiler/parse-ts.js
@@ -6,6 +6,9 @@ try {
6
}
7
8
function parseComponentsDeps (scriptContent) {
9
+ if (ts === null) {
10
+ throw new Error('Please run `npm install -S typescript` to install TypeScript.')
11
+ }
12
const sourceFile = ts.createSourceFile('test', scriptContent, ts.ScriptTarget.ESNext, /* setParentNodes */ true)
13
return delint(sourceFile)
14
0 commit comments