Fix "Module build failed: Error: Cannot find module '@babel/types'" (#7575)

* @babel/template and @babel/types are dependencies instead of devDependencies (fixes #7573).

* Use @babel/types and @babel/template via @babel/core
This commit is contained in:
Melvin Groenhoff
2018-03-15 14:45:26 +01:00
committed by Nicolò Ribaudo
parent 586d3b5929
commit 82994ce087
2 changed files with 2 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
import * as t from "@babel/types";
import template from "@babel/template";
import { types as t, template } from "@babel/core";
const buildForAwait = template(`
async function wrapper() {