【问题标题】:How do I correctly setup flow js in a gatsby project?如何在 gatsby 项目中正确设置流 js?
【发布时间】:2018-12-23 18:53:12
【问题描述】:

我在 Gatsby 中搜索了一种使用 flow js 的方法,但我发现的只是this 讨论。有谁知道正确的设置流程?

【问题讨论】:

    标签: babeljs flowtype gatsby


    【解决方案1】:

    我最终使用了我过去的一种配置,即:

    .babelrc

    {
      "presets": ["stage-2", "es2015", "stage-0", "react"],
      "plugins": [
        "typecheck",
        "syntax-flow",
        "transform-flow-strip-types",
        "add-module-exports"
      ]
    }
    

    【讨论】:

      猜你喜欢
      • 2016-07-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-09
      • 1970-01-01
      • 2011-09-27
      • 1970-01-01
      • 2017-03-04
      相关资源
      最近更新 更多