Skip to content

Commit

Permalink
Fix "Module build failed: Error: Cannot find module '@babel/types'" (#…
Browse files Browse the repository at this point in the history
…7575)

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

* Use @babel/types and @babel/template via @babel/core
  • Loading branch information
mgroenhoff authored and nicolo-ribaudo committed Mar 15, 2018
1 parent 586d3b5 commit 82994ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Expand Up @@ -18,8 +18,6 @@
},
"devDependencies": {
"@babel/core": "7.0.0-beta.41",
"@babel/helper-plugin-test-runner": "7.0.0-beta.41",
"@babel/template": "7.0.0-beta.41",
"@babel/types": "7.0.0-beta.41"
"@babel/helper-plugin-test-runner": "7.0.0-beta.41"
}
}
@@ -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() {
Expand Down

0 comments on commit 82994ce

Please sign in to comment.