import { createLoader } from 'react-hijack';

const componentLoader = createLoader((module) => import('' + module));

export default componentLoader;


import { createLoader } from 'react-hijack';

const componentLoader = createLoader((module) => import('./components/' + module));

export default componentLoader;

Add component path at module level
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.
