【问题标题】:How can I use Babel Standalone with Flow如何将 Babel Standalone 与 Flow 一起使用
【发布时间】:2020-12-22 21:17:48
【问题描述】:

我完全是前端 Web 开发人员,有时我会在 IDE 中使用 TypeScript。但是 TypeScript 很严格,它需要 npm,而且我的主机上没有 npm(我不想要另一个)。所以 Flow with Babel Standalone 是一个不错的选择。但是如何添加 Flow 插件呢?

完成:

<script type="text/babel" data-plugins="______" src="script.js"></script>

【问题讨论】:

    标签: javascript html babeljs flowtype


    【解决方案1】:
    <script type="text/babel" data-plugins="flow-strip-types" src="script.js"></script>
    

    查看https://babeljs.io/docs/en/plugins#docsNav

    【讨论】:

      猜你喜欢
      • 2019-07-30
      • 1970-01-01
      • 2018-05-27
      • 2018-10-09
      • 2021-03-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多