Avoid usage of exports/module.exports/require().

This commit is contained in:
Logan Smyth
2017-02-20 00:52:24 -08:00
parent d9f01cbce6
commit 4ee385e96c
32 changed files with 141 additions and 105 deletions

View File

@@ -1,4 +1,5 @@
import remapAsyncToGenerator from "babel-helper-remap-async-to-generator";
import syntaxAsyncGenerators from "babel-plugin-syntax-async-generators";
export default function ({ types: t }) {
const yieldStarVisitor = {
@@ -17,7 +18,7 @@ export default function ({ types: t }) {
};
return {
inherits: require("babel-plugin-syntax-async-generators"),
inherits: syntaxAsyncGenerators,
visitor: {
Function(path, state) {
if (!path.node.async || !path.node.generator) return;