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

module.exports fires before modules.define #26

Closed
narqo opened this issue Apr 17, 2013 · 4 comments
Closed

module.exports fires before modules.define #26

narqo opened this issue Apr 17, 2013 · 4 comments

Comments

@narqo
Copy link
Contributor

narqo commented Apr 17, 2013

Было бы правильнее, в коде библиотеки, сначала проверять доступность modules и define и только после делать module.exports.

Сейчас если использовать vow из Node.js всегда будет срабатывать exports, даже если я хочу использовать модули.

@narqo
Copy link
Contributor Author

narqo commented Apr 17, 2013

Хотя с этим, скорее всего, сломается текущий код, в котором есть require('vow') и подключен ym :(

@dfilatov
Copy link
Owner

Да, в таком случае сломается (

@dfilatov
Copy link
Owner

в 0.3.4 сделал что будет дефайнится во все возможные модульные системы. Таким образом, в nodejs будут работать оба способа.

@narqo
Copy link
Contributor Author

narqo commented May 15, 2013

👍

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

2 participants