GithubHelp home page GithubHelp logo

Compatibility with IE11 about bwip-js HOT 6 CLOSED

PacManPk avatar PacManPk commented on May 27, 2024
Compatibility with IE11

from bwip-js.

Comments (6)

metafloor avatar metafloor commented on May 27, 2024

You would likely have to go back to version 1 to get IE11 compatibility, but I would not recommend that. There have been a lot of bug fixes in the cross-compiled code, plus the BWIPP postscript source code has progressed considerably since then.

A better approach would be to use webpack to translate/polyfill the current release to ES5 - [ "web", "es5" ] target - with bwip-js/dist/bwip-js.js as the source.

from bwip-js.

PacManPk avatar PacManPk commented on May 27, 2024

Hi, thanks for reply. I am almost unaware of HTML/Js programming. Do you mean by useing webpack to translate/polyfill the current release to ES5, it will work in ie11?

from bwip-js.

metafloor avatar metafloor commented on May 27, 2024

Yes. My understanding is that IE11 was mostly ES5 compliant, and implemented some ES6 features. For example, Uint8Array. Downgrading the latest bwip-js release to ES5 will incur runtime cost, but you're working with such an ancient javascript engine that performance is likely the least of your worries....

from bwip-js.

PacManPk avatar PacManPk commented on May 27, 2024

Hi, thanks for help. I will be thankful if you could guide me a little how to convert latest release to ES5.

from bwip-js.

metafloor avatar metafloor commented on May 27, 2024

I am not proficient with webpack - just use a minimal config of it to test tree shaking with this project. There are tons of websites that show how to use it. Plus its reference and user manuals are pretty good. Good luck!

from bwip-js.

PacManPk avatar PacManPk commented on May 27, 2024

Thanks a lot.

from bwip-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.