diff --git a/packages/babel-preset-env/src/use-built-ins-plugin.js b/packages/babel-preset-env/src/use-built-ins-plugin.js index 25ebd661a8922..928ddb58826f1 100644 --- a/packages/babel-preset-env/src/use-built-ins-plugin.js +++ b/packages/babel-preset-env/src/use-built-ins-plugin.js @@ -43,7 +43,7 @@ export default function({ types: t }: { types: Object }): Plugin { if (builtIn && !builtIns.has(builtIn)) { builtIns.add(builtIn); const programPath = path.find(path => path.isProgram()); - programPath.unshiftContainer("body", createImport(t, builtIn)); + programPath.unshiftContainer("body", createImport(t, builtIn), "require"); } }