Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!