-
0 votesanswersviews
使用webpack构建时自动插入babel-polyfill
我有以下webpack配置: const path = require('path'); const webpack = require('webpack'); function NoOpPlugin(options) { // Setup the plugin instance with options... } NoOpPlugin.prototype.apply = funct... -
15 votesanswersviews
babel vs babel-core vs babel-loader vs babel-preset-2015 vs babel-preset-react vs babel-polyfill
我正在为我的反应项目设置webpack,并且在babel,babel-core,babel-loader,babel-preset-2015和babel-preset-react之间感到困惑 . 我知道需要babel将es7或es6代码转换为es5但是在我的package.json中我安装了除babel之外的所有这些依赖项,它们也作为“devDependencies” . 有人可以解释一下这些之间... -
6 votesanswersviews
IE11中的Webpack隐式供应商/清单块 - Promise未定义
Short version 当我在IE11中运行我的应用程序时,我在manifest.js文件中收到错误说明 Promise is undefined . 如何添加 babel-polyfill 或类似的运行 before 执行清单? Long version 我试图将CommonsChunkPlugin添加到我的webpack配置中,以便将第三方(npm包)脚本拆分成一个单独的包 . 根据We... -
1 votesanswersviews
使用babel-preset-env定位节点8时,未填充Array.prototype.values
当使用babel-preset-env和目标节点8时,Babel不是polyfiiling array.values() . .babelrc { "presets": [ ["env", { "targets": { "node": "8" },...