Ok so TurboWarp extensions are wrapped in IIFEs and load using "Scratch.extensions.register" which is annoying if you're me because I wanted the Unsandboxed extension specification to export extension classes as modules.
However, I also wanted to remain as close to TurboWarp as possible, so the TW extension docs would be interchangeable.
What do I do? Do both lmao.
Webpack compiles all extension code wrapped in IIFEs to export the extension class as a module, so devs don't have to change anything about how they write extensions. As far as they're concerned, its the same as TurboWarp.
Who says I can't have my cake and eat it too lmao.











0 comments