Update plugin build system (#14571)
This commit is contained in:
1 parent
413a76d798
commit
6d21de11fd
60 files changed
+356
-389
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import createParsers from "../utils/create-parsers.js";
|
||||
|
||||
export const parsers = createParsers([
|
||||
{
|
||||
importParsers: async () =>
|
||||
(await import("../language-js/parse/babel.js")).default,
|
||||
parserNames: [
|
||||
"babel",
|
||||
"babel-flow",
|
||||
"babel-ts",
|
||||
"__js_expression",
|
||||
"__vue_expression",
|
||||
"__vue_ts_expression",
|
||||
"__vue_event_binding",
|
||||
"__vue_ts_event_binding",
|
||||
"__babel_estree",
|
||||
],
|
||||
},
|
||||
// JSON parsers are based on babel, bundle together to reduce package size
|
||||
{
|
||||
importParsers: async () =>
|
||||
(await import("../language-json/parser-json.js")).default,
|
||||
parserNames: ["json", "json5", "json-stringify"],
|
||||
},
|
||||
]);
|
||||
export default { parsers };
|
||||
Reference in new issue
Block a user