0

我有在 react-native webview 中运行的 nextjs 应用程序的静态构建。

它可以在除 Android 4.4 版本之外的所有设备上运行。

控制台说 Set 没有定义,这应该意味着 polyfill 有问题。

我添加了 .babelrc 设置

{
"presets": [
    [
        "env",
        {
            "modules": false,
            "debug": true,
            "useBuiltIns": true,
            "targets": {
                "browsers": [
                    "android >= 4.4",
                    "ios_saf > 9",
                    "and_chr >= 56"
                ]
            }
        }
    ],
    "next/babel"
]

}

我的控制台甚至说

 es6.set {"android":"4.4","ios":"9.3"}

已设置,但它仍然不起作用

有任何想法吗?

4

0 回答 0