ms/packages/compile/src/index.ts

5 lines
167 B
TypeScript
Raw Normal View History

import * as ts from 'typescript'
let scan = ts.createScanner(ts.ScriptTarget.ES5, true, ts.LanguageVariant.Standard)
scan.setText('let a = 1')
scan.tryScan(() => { })