1
0
mirror of https://github.com/flarum/core.git synced 2025-10-21 19:56:29 +02:00

Replace forum and admin global compat exports with a Proxy to allow namespace use (#2488)

This commit is contained in:
David Sevilla Martín
2020-12-07 13:25:24 -05:00
committed by GitHub
parent 51a97fb12e
commit 67a2aac635
4 changed files with 20 additions and 6 deletions

View File

@@ -15,8 +15,9 @@ export { app };
// export { IndexPage, DicsussionList } from './components';
// Export compat API
import compat from './compat';
import compatObj from './compat';
import proxifyCompat from '../common/utils/proxifyCompat';
compat.app = app;
compatObj.app = app;
export { compat };
export const compat = proxifyCompat(compatObj, 'forum');