mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
refactor(componentLoader): Add component path at module level
Instead of forcing this knowledge on the add-on, we inserted it here. The benefit is that we are able to point the core to whatever directory we choose, without modifying each addon in turn.
This commit is contained in:
parent
350862b0cc
commit
583efbc9c4
1 changed files with 1 additions and 2 deletions
|
@ -1,6 +1,5 @@
|
|||
import { createLoader } from 'react-hijack';
|
||||
|
||||
const componentLoader = createLoader((module) => import('' + module));
|
||||
const componentLoader = createLoader((module) => import('./components/' + module));
|
||||
|
||||
export default componentLoader;
|
||||
|
||||
|
|
Loading…
Reference in a new issue