Scott 老师 babel-plugin-transform-runtime 是不是已经包含了 babel-runtime
来源:2-6 生产环境使用 Babel 支持 ES6-7

年轻人丶
2018-03-07
下面是 babel-plugin-transform-runtime 的 dependencies 依赖包
{
"name": "babel-plugin-transform-runtime",
"version": "6.23.0",
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",
"repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-runtime",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"babel-plugin"
],
"dependencies": {
"babel-runtime": "^6.22.0"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "^6.22.0"
},
"_from": "babel-plugin-transform-runtime@6.23.0",
"_resolved": "http://registry.npm.taobao.org/babel-plugin-transform-runtime/download/babel-plugin-transform-runtime-6.23.0.tgz"
}
1回答
-
是的,不过还是建议把这个显示的加上,而不是依赖他的依赖
112018-03-07
相似问题