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

RequireJS support for modules requires some time to pass #452

Open
becdetat opened this issue Aug 21, 2018 · 0 comments
Open

RequireJS support for modules requires some time to pass #452

becdetat opened this issue Aug 21, 2018 · 0 comments

Comments

@becdetat
Copy link

It doesn't seem like modules can be used immediately, unless I'm holding something wrong. If I wait a few ms then the module helper methods get added to the rangy object, which is a problem if I want to use the method immediately.

const rangy = require('rangy')
require('rangy/lib/rangy-classapplier')

console.log('immediate', rangy.createClassApplier) // undefined
setTimeout(() => console.log('10ms later', rangy.createClassApplier), 10) // function
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