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回答

Scott

2018-03-07

是的,不过还是建议把这个显示的加上,而不是依赖他的依赖

1
1
年轻人丶
谢谢老师
2018-03-07
共1条回复

Koa2框架从0开始构建预告片网站

Koa2+MongoDB+Parcel+Puppeteer+AntDesign快速搭建预告片网站

751 学习 · 362 问题

查看课程