BABEL Note: The code generator has deoptimised the styling of “app.js” as it exceeds the max of "100KB in Meteor

后端 未结 2 1344
时光取名叫无心
时光取名叫无心 2020-12-15 16:02

My app.js file in meteor has exceeded the limit of 100KB How do I fix this now? Does It affects my application? Is that because of installing packages?

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 16:44

    At first for more explanation read the Babel documentation on Options.

    It is a common option of Babel compiler that commands not include superfluous whitespace characters and line terminators. sometimes ago its threshold was 100KB but now is 500KB.

    And I advise to you disable this option in your development environment, with this code in .babelrc file.

    {
        "env": {
          "development" : {
            "compact": false
          }
        }
    }
    

    For production environment Babel use the default config which is auto.

提交回复
热议问题