Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/383.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 为什么是巴别塔7核心-js@3不';我不在IE11工作 巴别塔依赖 { “@babel/cli”:“7.10.5”, “@babel/core”:“7.10.5”, “@babel/polyfill”:“7.10.4”, “@babel/preset env”:“7.10.4”, “@babel/preset react”:“7.10.4”, “@babel/register”:“7.10.5”, “巴别塔核心”:“7.0.0-bridge.0”, “巴别塔加载器”:“8.1.0”, } 巴别塔 { “预设”:[ [ “@babel/preset env”, { “目标”:{ “节点”:“当前”, “浏览器”:“自2012年起” }, “corejs”:{“版本”:3,“建议”:正确}, “useBuiltIns”:“用法” } ], “@lingui/babel预置js”, “@babel/reset react”, “@lingui/babel预设反应” ], } 网页包 module.exports={ 模式:"生产",, 条目:{ applyWeb:path.join(path.src.applyWeb,'index.js'), 普通:[“时刻”], }, 模块:{ 规则:[ { 测试:/\.js$/,, 排除:[path.resolve(_dirname,'node_modules')、path.resolve(_dirname,'src/lingui')], 装载机:[ 线程加载选项, { 加载器:“巴别塔加载器”, 选项:{ cacheDirectory:`node\u modules/.cache/babel loader/${envHash}`, }, }, ], }, }, ... };_Javascript_Babeljs_Polyfills_Core Js - Fatal编程技术网

Javascript 为什么是巴别塔7核心-js@3不';我不在IE11工作 巴别塔依赖 { “@babel/cli”:“7.10.5”, “@babel/core”:“7.10.5”, “@babel/polyfill”:“7.10.4”, “@babel/preset env”:“7.10.4”, “@babel/preset react”:“7.10.4”, “@babel/register”:“7.10.5”, “巴别塔核心”:“7.0.0-bridge.0”, “巴别塔加载器”:“8.1.0”, } 巴别塔 { “预设”:[ [ “@babel/preset env”, { “目标”:{ “节点”:“当前”, “浏览器”:“自2012年起” }, “corejs”:{“版本”:3,“建议”:正确}, “useBuiltIns”:“用法” } ], “@lingui/babel预置js”, “@babel/reset react”, “@lingui/babel预设反应” ], } 网页包 module.exports={ 模式:"生产",, 条目:{ applyWeb:path.join(path.src.applyWeb,'index.js'), 普通:[“时刻”], }, 模块:{ 规则:[ { 测试:/\.js$/,, 排除:[path.resolve(_dirname,'node_modules')、path.resolve(_dirname,'src/lingui')], 装载机:[ 线程加载选项, { 加载器:“巴别塔加载器”, 选项:{ cacheDirectory:`node\u modules/.cache/babel loader/${envHash}`, }, }, ], }, }, ... };

Javascript 为什么是巴别塔7核心-js@3不';我不在IE11工作 巴别塔依赖 { “@babel/cli”:“7.10.5”, “@babel/core”:“7.10.5”, “@babel/polyfill”:“7.10.4”, “@babel/preset env”:“7.10.4”, “@babel/preset react”:“7.10.4”, “@babel/register”:“7.10.5”, “巴别塔核心”:“7.0.0-bridge.0”, “巴别塔加载器”:“8.1.0”, } 巴别塔 { “预设”:[ [ “@babel/preset env”, { “目标”:{ “节点”:“当前”, “浏览器”:“自2012年起” }, “corejs”:{“版本”:3,“建议”:正确}, “useBuiltIns”:“用法” } ], “@lingui/babel预置js”, “@babel/reset react”, “@lingui/babel预设反应” ], } 网页包 module.exports={ 模式:"生产",, 条目:{ applyWeb:path.join(path.src.applyWeb,'index.js'), 普通:[“时刻”], }, 模块:{ 规则:[ { 测试:/\.js$/,, 排除:[path.resolve(_dirname,'node_modules')、path.resolve(_dirname,'src/lingui')], 装载机:[ 线程加载选项, { 加载器:“巴别塔加载器”, 选项:{ cacheDirectory:`node\u modules/.cache/babel loader/${envHash}`, }, }, ], }, }, ... };,javascript,babeljs,polyfills,core-js,Javascript,Babeljs,Polyfills,Core Js,来自巴贝尔网站 使用webpack,有多种方式包含多边形填充: 与@babel/预设环境一起使用时 如果在.babelrc中指定了useBuiltIns:“用法”,则在webpack.config.js条目数组或source中都不包含@babel/polyfill。注意,@babel/polyfill仍需要安装 但在IE11中,polyfill并没有像预期的那样包括在内 例如: 有人能帮忙吗

来自巴贝尔网站

使用webpack,有多种方式包含多边形填充:

与@babel/预设环境一起使用时

如果在.babelrc中指定了useBuiltIns:“用法”,则在webpack.config.js条目数组或source中都不包含@babel/polyfill。注意,@babel/polyfill仍需要安装

但在IE11中,polyfill并没有像预期的那样包括在内

例如:

有人能帮忙吗