Skip to content

allow es6 import/require #29

Closed
Closed
@ppisljar

Description

its not possible to require/import circos ....

in circos.js, add this on the end:

module.exports = Circos;

this will allow to import like this:
import Circos from 'circos/dist/circos'

to allow direct inclussion add index.js directly in the circos folder with this content: (first change is still needed)

module.exports = require('./dist/circos');

now its possible to include like
import Circos from 'circos';

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions