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

81
Vistas
Bundle and run JavaScript module in the browser

I want to run a JavaScript module with external dependencies in the browser. Is that possible? I know that Babel can be executed in the browser, so that should be possible.

Let's say that I have a following module:

const module = `
    import React from "react";
    import ReactDOM from "react-dom";

    ReactDOM.render(<div>Hello, world!</div>, document.body);
`

Now, how to „compile” it so that it can be executed in the browser? Also, the tricky part is that I want to preserve versions, so let's say that I want to use version 16 of React and ReactDOM.

about 4 years ago · Juan Pablo Isaza
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