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.
The only reliable way of avoiding this issue is really getting rid of all circular dependencies. So I restructured the code a bit, and in a few cases I had a module provide a callback to another in order to avoid an explicit dependency there. Not necessarily fancy but it works.
A Mastodon instance for info/cyber security-minded people.