Skip to content

Alias on partial string? #127

@FezVrasta

Description

@FezVrasta

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions