Pasar al contenido principal
No se encontró ningún elemento.
logo de dropboxsign
¿Por qué Dropbox Sign?
Expandir o contraer acordeón

Lo que puedes hacer

Firmar documentos onlines
Crear firmas electrónicas
Selecciona o crea plantillas
Rellena y firma PDF
Completa contratos online
Administración de documentos
Explora las características
ícono de flecha que apunta hacia la derecha

Casos de uso

Ventas y desarrollo de negocios
Recursos Humanos
Empresas emergentes
Tecnología financiera
Inmobiliario
Servicios a la carta
Productos
Expandir o contraer acordeón
ícono de dropbox
Sign
Facilita el envío y la firma
ícono de dropbox
Sign API
Integra eSign en tus flujos de trabajo
ícono de dropbox fax
Fax
Envía faxes sin usar una máquina de fax
ícono de integraciones de dropbox
Integraciones
Nos reunimos contigo donde trabajas.
Recursos
Expandir o contraer acordeón
Blog
Novedades sobre productos y experiencia en flujos de trabajo
Historias de clientes
Historias del mundo real con resultados reales
Centro de ayuda
Orientación en profundidad para nuestros productos
Biblioteca de recursos
Informes, videos y hojas informativas
Desarrolladores
Precios
Expandir o contraer acordeón
Precios de Dropbox Sign
Buscar el plan apropiado para ti
Precios de la API de Dropbox Sign
Historias del mundo real con resultados reales
Comunícate con ventas
Registrarse
Comunícate con ventas
Inicia sesión
Expandir o contraer acordeón
Dropbox Sign
Dropbox Forms
Dropbox Fax
Pruébalo gratis
Blog
/
Desarrolladores

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

by 
Freddy Rangel
June 9, 2016
3
minuto de lectura
Getting React and Webpack to Run on IE8
icono tooltip

Nuevo aspecto, ¡el mismo gran producto! HelloSign ahora es Dropbox Sign.

icono cerrar

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.

Mantente actualizado

¡Listo! Consulta tu bandeja de entrada.

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
ícono de flecha que apunta hacia la derecha
icono cerrar

Up next:

Ilustración en primer plano de una firma manuscrita, que representa soluciones modernas para la firma digital.
Desarrolladores
15
minuto de lectura

Integración de Dropbox Sign con Ruby on Rails: un tutorial paso a paso

Ilustración en primer plano de una firma manuscrita, que representa soluciones modernas para la firma digital.
Desarrolladores
15
minuto de lectura

Dropbox Sign vs. SignNow for developers

Informe

¿Cómo será el 2022 para las empresas de servicios profesionales?

Productos
Dropbox SignAPI de Dropbox SignDropbox FaxIntegraciones
¿Por qué Dropbox Sign?
Firmas electrónicasFirmar documentosFirma y rellena PDFContratos en líneaCrear firmas electrónicasEditor de firmasFirma documentos de Word
Soporte
Centro de ayudaComunícate con ventasComunícate con soportePreferencias de cookies y CCPAPrimeros pasos: Dropbox SignPrimeros pasos: API de Dropbox Sign
Recursos
BlogHistorias de clientesCentro de RecursosGuía de legalidadCentro de confianza
Socios
Socios EstratégicosLocalizador de socios
Empresa
Carrera profesionalCondiciones del servicioPrivacidad
ícono de facebookícono de youtube

Formas de pago aceptadas

logo de Mastercardlogo de Visalogo de American Expresslogo de Discover
Insignia de cumplimiento con la CPAInsignia de cumplimiento con la HIPAAInsignia Sky High Enterprise ReadyInsignia de certificación ISO 9001

Las firmas electrónicas de Dropbox Sign son legalmente vinculantes en los Estados Unidos, la Unión Europea, el Reino Unido y en muchos países del mundo.
Para obtener más información, consulta nuestros Términos y Condiciones y Política de Privacidad