Accéder au contenu principal
Aucun élément n’a été trouvé.
Logo Dropbox Sign
Pourquoi choisir Dropbox Sign ?
Développer ou réduire l’accordéon

Fonctionnalités

Signer des documents en ligne
Créer des signatures électroniques
Choisir ou créer des modèles
Remplir et signer des fichiers PDF
Terminer des contrats en ligne
Gestion de documents
En savoir plus sur les fonctionnalités
Icône en forme de flèche droite

Cas d’usage

Ventes et développement commercial
Ressources humaines
Start‑up
Fintech
Immobilier
Services à la demande
Produits
Développer ou réduire l’accordéon
icône Dropbox
Sign
Envoyez et signez des documents en toute simplicité
icône Dropbox
Sign API
Intégrez la signature électronique à votre workflow
Icône Dropbox Fax
Fax
Envoyez des fax sans télécopieur
Icône des intégrations Dropbox
Intégrations
Retrouvez-nous dans vos outils préférés
Ressources
Développer ou réduire l’accordéon
Blog
Expertise en matière de workflow et nouveautés produits
Témoignages
Vrais retours d’expérience
Centre d’assistance
Conseils avisés concernant nos produits
Bibliothèque de ressources
Rapports, vidéos et fiches d’information
Développeurs
Tarifs
Développer ou réduire l’accordéon
Tarifs Dropbox Sign
Choisissez le forfait qui vous convient
Tarifs Dropbox Sign API
Vrais retours d’expérience
Contacter le service commercial
S’inscrire
Contacter le service commercial
Se connecter
Développer ou réduire l’accordéon
Dropbox Sign
Dropbox Forms
Dropbox Fax
Essayer gratuitement
Blog
/
Développeurs

Getting React and Webpack to Run on IE8 (If You Must)

par 
Freddy Rangel
June 9, 2016
3
minute(s) de lecture
Getting React and Webpack to Run on IE8
Icône représentant une infobulle

Nouveau look, mais toujours le même produit d’exception ! HelloSign s’appelle maintenant Dropbox Sign.

Icône de fermeture

This post was originally published by Freddy Rangel on Medium.

‍

–––

‍

You might ask yourself, “why in the world would anyone want to torture themselves by supporting IE8?” Even Google doesn’t support IE8! But there are actually many companies that must support IE8 for one reason or another. At the company where I work, Dropbox Sign, we allow third-party companies to embed our document signing software directly in their applications. Many of our customers support IE8. Therefore, we must support IE8 as well.

‍

Recently, we received a report that IE8 users could not sign documents on our site. We take these kinds of bugs very seriously. Signing agreements is no trivial matter: they’re the written documents that outline the relationships and obligations of our lives. If our users can’t sign documents, they can’t do the basic tasks to get things done. A bug like this can have a huge impact on individuals and businesses alike.

‍

The cause of this bug for IE8 users was our rewrite of many parts of our application using React and Webpack. As it turns out, there are quite a few changes needed in order to get these two libraries to run on IE8. Here’s how we did it.

‍

ES5 Polyfill

‍

React and Webpack support ES5 and above. IE8, however, runs ES3, so you’ll need a polyfill to be able to run ES5 code. You can find the ES5 shim here: ES5 Shim.

‍

Set NODE_ENV to Production

‍

This change not only makes your React application much faster, but also removes a lot of code in development that are not supported on IE8. There’s a little more to it that just setting your NODE_ENV, but luckily I already wrote a blog post about how to do that and more: How to Make Your React Apps 10x Faster.

‍

ES3ify Your Code

‍

Even with a polyfill, there is much ES5 code that will break on IE8. One prominent example is the reserved words in IE8, words used as key names in an object. `class`, `catch`, and `default` are reserved works in ES3. ES3ify will change your code to avoid these conflicts with ES3

‍

‍

.

‍

Babel Transforms

‍

For good measure, I recommend using 2 Babel transforms that do much the same thing as ES3ify: Transform-es3-property-literals and transform-es3-member-expression-literals. We have a lot of legacy code that we’re not running through Babel, so we need to use ES3ify. We also use the Babel transforms just to be on the safe side.

‍

Watch Out for IE8 Gotchas

‍

One interesting gotcha I discovered was the incompatibility of the getter syntax in IE8. Many developers assume getters are an ES2015 feature, but they are actually ES5. This means that if you’re using getters in ES2015 classes, Babel will simply use the ES5 getter syntax. Unfortunately, this blows up on IE8. 

‍

There is support for getters in IE8, however, it is only compatible with DOM nodes. My suggestion: Avoid getters if you must support IE8.

Restez informé

C’est fait ! Veuillez vérifier votre boîte de réception.

Thank you!
Thank you for subscribing!

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum
Icône en forme de flèche droite
Icône de fermeture

Up next:

Illustration en gros plan d'une signature manuscrite, représentant des solutions modernes de signature numérique.
Développeurs
15
minute(s) de lecture

Intégration de Dropbox Sign à Ruby on Rails : un tutoriel étape par étape

Illustration en gros plan d'une signature manuscrite, représentant des solutions modernes de signature numérique.
Développeurs
15
minute(s) de lecture

Dropbox Sign vs. SignNow for developers

eBook

Cinq obstacles à l’embauche des commerciaux (et comment les éviter)

Produits
Dropbox SignDropbox Sign APIDropbox FaxIntégrations
Pourquoi choisir Dropbox Sign ?
Signatures électroniquesSigner des documentsRemplir et signer des fichiers PDFContrats en ligneCréer des signatures électroniquesÉditeur de signaturesSignature de documents Word
Assistance
Centre d’assistanceContacter le service commercialContacter l’assistanceGérer les cookiesDécouvrir Dropbox SignDécouvrir Dropbox Sign API
Ressources
BlogTémoignagesCentre de ressourcesGuide sur la légalitéTrust Center
Partenaires
Partenaires stratégiquesOutil de localisation des partenaires
Entreprise
RecrutementConditions d’utilisationConfidentialité
icône Facebookicône YouTube

Modes de paiement acceptés

Logo MastercardLogo VisaLogo American ExpressLogo Discover
Badge de conformité CPABadge de conformité avec la loi HIPAABadge Skyhigh Enterprise-ReadyBadge de certification ISO 9001

Les signatures électroniques Dropbox Sign sont juridiquement contraignantes aux États-Unis, dans l’Union européenne, au Royaume-Uni et dans de nombreux pays.
Pour en savoir plus, consultez nos conditions d’utilisation et notre politique de confidentialité.