start moving more transformers to packages and finish import of plugins from babel-plugins
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "babel-plugin-jscript",
|
||||
"version": "1.0.4",
|
||||
"description": "Babel plugin to fix buggy JScript named function expressions",
|
||||
"repository": "babel-plugins/babel-plugin-jscript",
|
||||
"repository": "babel/babelbabel-plugin-jscript",
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
export default function ({ Plugin, types: t }) {
|
||||
return new Plugin("jscript", {
|
||||
return {
|
||||
metadata: {
|
||||
group: "builtin-trailing"
|
||||
},
|
||||
|
||||
|
||||
visitor: {
|
||||
FunctionExpression: {
|
||||
exit(node) {
|
||||
@@ -20,5 +20,5 @@ export default function ({ Plugin, types: t }) {
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user