Avoid usage of exports/module.exports/require().
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import syntaxFlow from "babel-plugin-syntax-flow";
|
||||
|
||||
export default function ({ types: t }) {
|
||||
function wrapInFlowComment(path, parent) {
|
||||
path.addComment("trailing", generateComment(path, parent));
|
||||
@@ -12,7 +14,7 @@ export default function ({ types: t }) {
|
||||
}
|
||||
|
||||
return {
|
||||
inherits: require("babel-plugin-syntax-flow"),
|
||||
inherits: syntaxFlow,
|
||||
|
||||
visitor: {
|
||||
TypeCastExpression(path) {
|
||||
|
||||
Reference in New Issue
Block a user