【问题标题】:Babel error when installing Atom and atom-typescript package安装 Atom 和 atom-typescript 包时出现 Babel 错误
【发布时间】:2015-07-03 01:29:31
【问题描述】:

我收到了这个奇怪的错误:

mydev> apm install atom-typescript
Installing atom-typescript to /Users/pitosalas/.atom/packages [BABEL] Note: The code generator has deoptimised the styling of "/Users/pitosalas/.atom/packages/atom-typescript/dist/typescript/compiler/checker.js" as it exceeds the max of "100KB".
[BABEL] Note: The code generator has deoptimised the styling of "/Users/pitosalas/.atom/packages/atom-typescript/dist/typescript/compiler/diagnosticInformationMap.generated.js" as it exceeds the max of "100KB".
[BABEL] Note: The code generator has deoptimised the styling of "/Users/pitosalas/.atom/packages/atom-typescript/dist/typescript/compiler/emitter.js" as it exceeds the max of "100KB".
[BABEL] Note: The code generator has deoptimised the styling of "/Users/pitosalas/.atom/packages/atom-typescript/dist/typescript/compiler/parser.js" as it exceeds the max of "100KB".
[BABEL] Note: The code generator has deoptimised the styling of "/Users/pitosalas/.atom/packages/atom-typescript/dist/typescript/services/services.js" as it exceeds the max of "100KB".
✓
mydev>

我见过其他人报告它,但不是在 Typescript 和 Atom 的上下文中。有人知道吗?

【问题讨论】:

    标签: typescript atom-editor


    【解决方案1】:

    但不是在 Typescript 和 Atom 的上下文中。有人知道吗?

    两件事:

    • Atom 提供babel 作为内置转译器。所有的 JavaScript 文件都被传递给 babel。
    • Babel 删除大于 100kb 的文件的发射空格(可以使用compact 选项控制)。这就是您看到该消息的原因。

    可以放心地忽略它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-09
      • 1970-01-01
      • 2016-10-15
      相关资源
      最近更新 更多