We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
环境:基于本仓库 .babelrc 文件内容如下:
{ "env":{ "node": { "presets": [ "react", ["env", { "modules": false, "targets": { "node": "current" } }] ], "plugins": [ "react-hot-loader/babel", "transform-object-assign", "syntax-dynamic-import", "transform-class-properties", "transform-decorators-legacy", "transform-object-rest-spread", ["transform-runtime", { "helpers": false, "polyfill": false, "regenerator": true, "moduleName": "babel-runtime" }], ["import", { "libraryName": "antd", "style": "css" }]] }, "web": { "presets": [ "react", ["env", { "modules": false, "targets": { "browsers": ["last 2 versions", "not ie <= 7"] } }] ], "plugins": [ "react-hot-loader/babel", "transform-object-assign", "syntax-dynamic-import", "transform-class-properties", "transform-decorators-legacy", "transform-object-rest-spread", ["transform-runtime", { "helpers": false, "polyfill": true, "regenerator": true, "moduleName": "babel-runtime" }], ["import", { "libraryName": "antd", "style": "css" }]] } }, "comments": false }
打包命令为: easy build && easy zip --target ./dist --filename app --deps
easy build && easy zip --target ./dist --filename app --deps
打包后有一部分代码没有从es6语法转译: 打包目录 /disp/app/dist/app/public/js/chunk//.js 下面是我打包后查看到的未转译代码: 结果:无法兼容 期望:targets配制后能够兼容ie9
补充::每个打包后的js文件都有上述截图代码,是否react-hot-load相关代码没转译
The text was updated successfully, but these errors were encountered:
收到
Sorry, something went wrong.
@tears743 提供一个可重现的最小demo, 本仓库 master 是 基于 babel 7 的,你的配置是 babel6 还是说你用的其它分支?
No branches or pull requests
环境:基于本仓库
.babelrc 文件内容如下:
打包命令为:
easy build && easy zip --target ./dist --filename app --deps
打包后有一部分代码没有从es6语法转译:
打包目录 /disp/app/dist/app/public/js/chunk//.js
下面是我打包后查看到的未转译代码:
结果:无法兼容
期望:targets配制后能够兼容ie9
补充::每个打包后的js文件都有上述截图代码,是否react-hot-load相关代码没转译
The text was updated successfully, but these errors were encountered: