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:
Adrian Oprea 2018-01-16 17:19:56 +02:00
parent 350862b0cc
commit 583efbc9c4

View file

@ -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;