[Webpack > Common] Fix failing to get Flux

pull/62/head
Oj18 2 years ago
parent e00e315df7
commit 892af0a2d9

@ -45,12 +45,12 @@ export const findByModuleId = (id) => wpRequire.c[id];
export const common = { // Common modules
React: findByProps('createElement'),
ReactDOM: findByProps('render', 'hydrate'),
Flux: findByProps('Store', 'CachedStore', 'PersistedStore'),
Flux: findByProps('Store', 'connectStores'),
FluxDispatcher: findByProps('_waitQueue', '_orderedActionHandlers'),
i18n: findByProps('Messages', '_requestedLocale'),
channels: findByProps('getChannelId', 'getVoiceChannelId'),
constants: findByProps('API_HOST', 'CaptchaTypes')
};
};

Loading…
Cancel
Save