Skip to content
New issue

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

IE11 #76

Closed
gheorghemolnar opened this issue Jan 23, 2024 · 3 comments
Closed

IE11 #76

gheorghemolnar opened this issue Jan 23, 2024 · 3 comments

Comments

@gheorghemolnar
Copy link

gheorghemolnar commented Jan 23, 2024

Hi John,

First of all thank you for this great repo, the code is great, i had a lot of fun time studying it !
Currently, I have to support Edge / IE11 compatible mode and it's not obvious at all.
Can you provide some insights please ?
(I'm trying to use babel, as a need to use it in a classic website: HTML + JS + CSS)

Thank you !

@johndatserakis
Copy link
Owner

johndatserakis commented Feb 2, 2024

Hey there - sure your best bet would be to study this CodeSandbox - it has file-upload-with-preview all set up using only HTML, JS, and CSS.

Let me know of any further questions, thank you.

@gheorghemolnar
Copy link
Author

Thanks for your update John, unfortunately the script tag included, has not been compiled to be compatible with IE11.
It has modern syntax, like string interpolation ...

@johndatserakis
Copy link
Owner

Sure, concerning the polyfill's specifically you can import some in the <head> of your HTML. I'm not sure exactly what is needed, but if you poke around at the errors you get you'll get an idea.

  • Babel:
    • <script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
  • ES6 Promises
    • <script src="https://cdn.jsdelivr.net/es6-promise/latest/es6-promise.auto.min.js"></script>
  • Object.assign
    • <script src="https://cdn.jsdelivr.net/npm/es6-object-assign@1.1.0/index.min.js"></script>
  • ...etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants