UNPKG

@storm-stack/core

Version:

A build toolkit and runtime used by Storm Software in TypeScript applications

20 lines (16 loc) 420 B
'use strict'; var chunkGRNJVY7I_cjs = require('./chunk-GRNJVY7I.cjs'); var parser = require('@babel/parser'); function parseAst(code, opts = {}) { return parser.parse(code, { plugins: [ "typescript" ], sourceType: "module", allowImportExportEverywhere: true, allowAwaitOutsideFunction: true, ...opts }); } chunkGRNJVY7I_cjs.__name(parseAst, "parseAst"); exports.parseAst = parseAst;