Skip to content
This repository was archived by the owner on Sep 11, 2019. It is now read-only.
This repository was archived by the owner on Sep 11, 2019. It is now read-only.

Move built components to the root of the module on pubshish #59

Description

@narqo

Currently, one has to specify a rather long path to import a component, e.g. react-islands/components/Button. As we aren't going to add any other staff to the library except components, it's might be handy if the user could import modules in a more concise way:

import Button from 'react-islands/Button';

We might genereate an index.js that exports all modules as well,

import { Button, Checkbox } from 'react-islands';

but I'd prefer to not recommended this way of usage, as it led to bundling the whole library to the user's project, even if only some components were used.

/cc @vodkabears @pasaran

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions