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

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