waiaan

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

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

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

    谢谢。

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