add deprecation notice
This commit is contained in:
parent
56753d3614
commit
b1c8070fc3
|
@ -9,7 +9,7 @@
|
|||
*/
|
||||
|
||||
import { Utils, Filters } from 'common';
|
||||
import Events from './events';
|
||||
import Events from '../events';
|
||||
|
||||
const KnownModules = {
|
||||
React: Filters.byProperties(['createElement', 'cloneElement']),
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/* Deprecation Notice */
|
||||
import { Modules } from './reflection/modules';
|
||||
import { ClientLogger as Logger } from 'common';
|
||||
|
||||
const DeprecationWarning = new Proxy(Modules, {
|
||||
get(Modules, property) {
|
||||
Logger.warn('DEPR', 'WebpackModules is deprecated. Use Reflection.Modules instead.');
|
||||
return Modules[property] || Modules.getModuleByName(property);
|
||||
}
|
||||
});
|
||||
|
||||
export { DeprecationWarning as WebpackModules };
|
Loading…
Reference in New Issue