安装 Atom 和 atom-typescript 包时出现 Babel 错误
Babel error when installing Atom and atom-typescript package
我收到这个奇怪的错误:
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 的上下文中。有人知道吗?
but not in the context of Typescript and Atom. Anyone know?
两件事:
- Atom 提供
babel
作为内置转译器。所有 JavaScript 文件都传递给 babel。
- Babel 会删除大于 100kb 的文件发出的空格(可以使用
compact
选项控制)。这就是您看到该消息的原因。
可以安全地忽略它。
我收到这个奇怪的错误:
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 的上下文中。有人知道吗?
but not in the context of Typescript and Atom. Anyone know?
两件事:
- Atom 提供
babel
作为内置转译器。所有 JavaScript 文件都传递给 babel。 - Babel 会删除大于 100kb 的文件发出的空格(可以使用
compact
选项控制)。这就是您看到该消息的原因。
可以安全地忽略它。