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:
parent
586d3b5929
commit
82994ce087
@ -18,8 +18,6 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "7.0.0-beta.41",
|
"@babel/core": "7.0.0-beta.41",
|
||||||
"@babel/helper-plugin-test-runner": "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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import * as t from "@babel/types";
|
import { types as t, template } from "@babel/core";
|
||||||
import template from "@babel/template";
|
|
||||||
|
|
||||||
const buildForAwait = template(`
|
const buildForAwait = template(`
|
||||||
async function wrapper() {
|
async function wrapper() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user