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

151
Vistas
Exported property gets hidden in dynamic import using webpack

In the latest webpack version (5+) when i try to use exported content of dynamic loaded module i can't see its property (got undefined) - the only way is to use module.default.method instead of module.method. I noticed that using file-saver library, but also reproduced it with simple module - i recreated the way saveAs function is exported in file-saver. Here is the problematic repo: https://github.com/snffquake/webpack_demo

With webpack 5+ both console.logs return undefineds and with webpack 4 i get functions as expected. I can't see any breaking changes in the webpack changelog that could cause that. Also, I am not sure if file-saver exports function in the right way, however it worked differently in the previous webpack versions. So the question is, is the correct behavior or am i doing something wrong?

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