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

83
Views
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
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!