Browse Source

chore: ie8兼容

es6
iapyang 5 years ago
parent
commit
06ba6a07ae
  1. 4
      src/core/platform/web/function.js
  2. 11
      webpack/webpack.common.js

4
src/core/platform/web/function.js

@ -105,6 +105,10 @@ _.extend(BI, {
humpString = [],
htmlStyle = document.documentElement.style,
_toHumb = function (string) {
if (!BI.isString(string)) {
return "";
}
return string.replace(/-(\w)/g, function ($0, $1) {
return $1.toUpperCase();
});

11
webpack/webpack.common.js

@ -10,7 +10,16 @@ module.exports = {
fineui: [
...isBuilt4IE8
? [
"core-js",
"core-js/features/object/define-property",
"core-js/features/object/create",
"core-js/features/object/assign",
"core-js/features/array/for-each",
"core-js/features/array/index-of",
"core-js/features/function/bind",
"core-js/features/promise",
"core-js/features/object/get-own-property-symbols",
"core-js/features/string/replace",
// "core-js",
]
: [
"@babel/polyfill",

Loading…
Cancel
Save