Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom namespace? #1

Open
belozer opened this issue May 15, 2018 · 1 comment
Open

Custom namespace? #1

belozer opened this issue May 15, 2018 · 1 comment

Comments

@belozer
Copy link
Member

belozer commented May 15, 2018

// Custom
ymModulesNS : `require('ym').modules`
ymNS : `bem`

import bemDom from 'bem:i-bem-dom'
-> require('ym').modules.require('i-bem-dom', bemDom => {})
// Defaults
ymModulesNS : `modules`
ymNS : `ym`

import bemDom from 'ym:i-bem-dom'
-> modules.require('i-bem-dom', bemDom => {})
// Disable
ymModulesNS : null
ymNS : null

// Example
import bemDom from 'i-bem-dom'
-> require('i-bem-dom', bemDom => {})
@belozer
Copy link
Member Author

belozer commented May 15, 2018

Maybe need adds ymSourceNS

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

No branches or pull requests

1 participant