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

252
Vistas
Webpack: any way to create a bundle consisting of two files where one imports data from an other?

Let's assume we have a javascript project and use webpack. In this example we have 4 js-files:

  1. index.js
  2. function1.js
  3. function2.js
  4. object.js

index.js is the entry point that imports functions from the function1.js and function2.js files as well as imports an object from the object.js file and eventually does something useful.

Task: there is a need to create two output files. The first file, bundle.js, shall be a bundle of index.js, function1.js and function2.js. The second file, the object.js, shall be the object.js we had before.

But the bundle.js and the new object.js still shall communicate with each other (the final bundle.js shall import object data from the final object.js).

Is there any way to create these two output js-files automatically?

about 4 years ago · Santiago Gelvez
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