bizroad-webpack-plugin
Version:
webpack plugin for biz road
18 lines • 495 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.file2babelAst = void 0;
var parser_1 = require("@babel/parser");
var file2babelAst = function (file, _a) {
var parsePlugins = _a.parsePlugins;
try {
return parser_1.parse(file, {
sourceType: 'module',
plugins: parsePlugins,
});
}
catch (err) {
return null;
}
};
exports.file2babelAst = file2babelAst;
//# sourceMappingURL=file2babelAst.js.map