shintendo

Electron + Vue 写桌面客户端,还需要使用 Babel 吗?

  •  
  •   shintendo · May 31, 2019 · 3725 views
    This topic created in 2571 days ago, the information mentioned may be changed or developed.

    我的理解是 Electron 里面固定是 Chromium,不需要考虑其它浏览器,那么在不使用特别奇怪的 ES 特性情况下,还需不需要用 Babel ? Babel 的转换会不会带来不必要的运行性能损耗 /打包体积增大?

    请大佬解惑

    2 replies    2019-06-01 21:26:27 +08:00
    noe132
        1
    noe132  
       May 31, 2019
    preset-env 的 target 选项了解一下。
    liyuanqiu
        2
    liyuanqiu  
       Jun 1, 2019 via iPhone
    理论上你用到的特性 chromium 那个版本能支持,就不需要 Babel。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3028 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 13:53 · PVG 21:53 · LAX 06:53 · JFK 09:53
    ♥ Do have faith in what you're doing.