79080956

Date: 2024-10-12 12:11:23
Score: 2.5
Natty:
Report link

So it seems that it is not possible with current webpack (5.95.0). According to the source in webpack/lib/javascript/JavascriptModulesPlugin.js Line 873+, an IIFE will always be set if I use more than 1 entry point (which in turn is needed to get all my source files in. Not using the import magic.) There is no config option to overwrite this and patching webpack is not an option. So using custom scripts to to 33% of webpack's job (combining the tsc output), I can let the scripts do 100% of the work and I get rid of webpack and back to stupid task runners :(

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Grumpydeveloper