Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

238
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda