简体   繁体   English

在 package.json 文件中包含“@babel/core”和“babel-core”有什么区别?

[英]What's the difference between having "@babel/core" and "babel-core" in your package.json file?

Is there any difference between having one or the other in your package.json file?在 package.json 文件中有一个或另一个有什么区别吗?

"devDependencies": {
    "@babel/core": "^7.3.4",
    "babel-core": "^7.3.4"
 }

@babel/core is the scoped package structure that was introduced in v7, so from v7 this is the only correct way to reference the package. @babel/core 是 v7 中引入的作用域包结构,因此从 v7 开始,这是引用包的唯一正确方法。 babel-core is used in prior versions babel-core 在之前的版本中使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM