Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

237
Vistas
How can I write this statement in Javascript where ECMA Script is not supported?

I am trying to write this statement in simple javascript where import is not supported..

import IconAlignLeft from 'quill/assets/icons/align-left.svg';

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

That isn't even standard JavaScript. The use of import for things that are not JS modules is a feature of some bundlers (such as Webpack — relevant documentation is here).

There is no direct equivalent in plain JavaScript (in versions with or without support for modules).

The nearest equivalent would be:

const IconAlignLeft = "A string containing a URL that points to the SVG";

… but you would need to implement your own process for making the image available at the URL you specify.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda