Finished migrating #PfP from #Webpack to #Rollup. The generated code got much more readable (yes, I don't minimize it on purpose). It's also way easier to debug without IIFE, all global variables stay global. https://github.com/palant/pfp/commit/1a89e8ed8019f342bfc61dd261f58338977b4cbe
In the process I migrated the remaining parts of the codebase to ES6 modules, something that was non-trivial due to unit tests running on #NodeJS (meaning: no native module support). The other (unexpected) complication were circular dependencies.
This issue doesn't exist with ES6 modules, the namespaces of all modules being merged at compile time. But you get another issue: the order in which the modules initialize themselves is essentially undefined, you might be accessing functionality that hasn't been initialized yet.
A Mastodon instance for info/cyber security-minded people.