Mappings
moonlight uses mappings that automatically rename Webpack modules for you.
Notable modules
react
: Reactdiscord/packages/flux
: Discord’s fork of Fluxdiscord/Dispatcher
: Discord’s Flux dispatcherdiscord/components/common/index
: A lot of components reused in the client
Using mappings in an extension
You can import and require mappings like any other module:
Remember to add the module as a dependency.