【问题标题】:What's the difference between having "@babel/core" and "babel-core" in your package.json file?package.json 文件中包含“@babel/core”和“babel-core”有什么区别?
【发布时间】:2019-08-28 05:53:51
【问题描述】:

在你的 package.json 文件中有一个或另一个有什么区别吗?

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

【问题讨论】:

    标签: javascript dependencies babeljs package.json


    【解决方案1】:

    @babel/core 是 v7 中引入的作用域包结构,因此从 v7 开始,这是引用包的唯一正确方法。 babel-core 在之前的版本中使用过

    【讨论】:

      猜你喜欢
      • 2019-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-06
      • 2021-01-24
      • 2016-07-16
      • 1970-01-01
      相关资源
      最近更新 更多