Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

150
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda