Skip to content

可选链没转译的问题【无法兼容 chrome< 80 ,chrome >65 的浏览器】 #180

@shiqiWang0

Description

@shiqiWang0

问题描述

immer 中的可选链语法 ?. 并没有被 Babel 转译为 ES5,而是直接输出到打包结果中,导致在低版本浏览器(如 Chrome 65)中报错。

复现

chrome 79 就访问子产品,白屏掉;

期望

immer v10 走 bable-loader ,匹配 chrome 65 ,将可选链等兼容掉;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions