I have a set of react components all in the same folder (a_la_lerna).
These components will be published to npm under a namespace, all prefixed by the react- string, I would like to make them depend by each other, example:
Structure:
/packages/foo/index.jsx // on npm will be @namespace/react-foo
/packages/bar/index.jsx // on npm will be @namespace/react-bar
foo/index.jsx:
import Bar from '@namespace/react-bar';
[...]
I would like to make webpack load the modules locally instead of npm while I'm developing, in practice, the import should be transpiled to:
import Bar from 'packages/bar';
Is it possible?
I have a set of react components all in the same folder (a_la_lerna).
These components will be published to npm under a namespace, all prefixed by the
react-string, I would like to make them depend by each other, example:Structure:
foo/index.jsx:I would like to make webpack load the modules locally instead of npm while I'm developing, in practice, the import should be transpiled to:
Is it possible?