JsBarcode icon indicating copy to clipboard operation
JsBarcode copied to clipboard

fix: use `babel-preset-es2015-ie` to adapt ios8.x、Android4.x..

Open HansJiang opened this issue 7 years ago • 2 comments

throung our monitoring,it doesn't work in ios8.x、Android4.x and the low version of web browser engines(eg:UC).

BABEL transforming ES6 classes to ES5 syntax has compatibility issues.

Links: same problemlooseMode

It's a better way to use babel-preset-es2015-ie.

differences between babel-preset-es2015-ie and babel-preset-es2015

 [
  [require('babel-plugin-transform-es2015-classes'), {loose: true}],
  require('babel-plugin-transform-proto-to-assign'),
]

HansJiang avatar Jan 07 '18 05:01 HansJiang

@SanichKotikov same problem I met, this PR look good to me

broven avatar Nov 09 '18 12:11 broven

@broven @HansJiang maybe it's better to use this https://github.com/lindell/JsBarcode/pull/243 ?

SanichKotikov avatar Nov 10 '18 00:11 SanichKotikov