waiaan

ie8 下有什么工程化、模块化开发的方案?

  •  
  •   waiaan · Apr 24, 2020 · 1337 views
    This topic created in 2233 days ago, the information mentioned may be changed or developed.

    或者给个能在 ie8 下运行的 webpack 配置方案,网上找的都运行不成功。

    谢谢。

    3 replies    2020-04-24 16:45:18 +08:00
    SilentDepth
        1
    SilentDepth  
       Apr 24, 2020
    粗略地想了一下貌似没什么需要特别注意的?你遇到啥问题了?
    waiaan
        2
    waiaan  
    OP
       Apr 24, 2020
    @SilentDepth
    能贴一下 webpack 配置文件吗?要么提示无效的标识符,要么是不支持 keys 属性或方法。
    SilentDepth
        3
    SilentDepth  
       Apr 24, 2020
    IE8 很古老了,不要用现代 JS 的语法和 API 。.browserslist.rc 里加上 ie >= 8,然后引入 babel-polyfill
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2801 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 12:49 · PVG 20:49 · LAX 05:49 · JFK 08:49
    ♥ Do have faith in what you're doing.