mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 17:37:24 +08:00
21 lines
742 B
JavaScript
21 lines
742 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.parse = void 0;
|
|
const parser_1 = require("@babel/parser");
|
|
function parse(source) {
|
|
return parser_1.parse(source, {
|
|
sourceType: 'module',
|
|
plugins: [
|
|
// required for import.meta.hot
|
|
'importMeta',
|
|
// by default we enable proposals slated for ES2020.
|
|
// full list at https://babeljs.io/docs/en/next/babel-parser#plugins
|
|
// this should be kept in async with @vue/compiler-core's support range
|
|
'bigInt',
|
|
'optionalChaining',
|
|
'nullishCoalescingOperator'
|
|
]
|
|
}).program.body;
|
|
}
|
|
exports.parse = parse;
|
|
//# sourceMappingURL=babelParse.js.map
|