Skip to content

Conversation

@mateusmirandaalmeida
Copy link

Atualmente está retornando apenas a versão ao importar com npm.

Exemplo:
import OrgChart from '@balkangraph/orgchart.js' -> 6.0.2

Após a alteração:
import OrgChart from '@balkangraph/orgchart.js' -> ObjectOrgChart

Atualmente está retornando apenas a versão ao importar com npm.

Exemplo:  
import OrgChart from '@balkangraph/orgchart.js'      -> 6.0.2

Após a alteração:  
import OrgChart from '@balkangraph/orgchart.js'     ->  ObjectOrgChart
@plamen-peshev
Copy link
Contributor

Thank you very much for your pull request

Can you confirm that the code below will solve the issue with import

if (typeof(module) != "undefined"){
    module.exports = OrgChart;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants