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
With CommonJS, circular dependencies are obviously problematic - you might refer to a module that didn't finish setting up its exports yet. You avoid this issue by dropping the immediate require() call, delayed loading works fine then.
A Mastodon instance for info/cyber security-minded people.