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

feat(tech): add exports option #178

Closed
wants to merge 5 commits into from
Closed

feat(tech): add exports option #178

wants to merge 5 commits into from

Conversation

qfox
Copy link
Contributor

@qfox qfox commented May 18, 2016

Fixes #158

@qfox qfox force-pushed the feature/exports branch 2 times, most recently from a7b4b96 to 262c8cd Compare May 18, 2016 02:49

По умолчанию сборщик пытается собрать шаблоны как CommonJS- и YM-модуль одновременно (будет возможно подключать как в среде браузера с модульной системой, так и в среде Node.js) и, если файл подключается иным способом, то при его исполнении объект с шаблонизатором экспортируется в глобальную область видимости.

Это поведение описывается объектом опции `exports` `{ globals: true, commonJS: true, ym: true }` и является значением по умолчанию. В свойстве `globals` допустимо передать строку `'force'` для явного экспорта объекта с шаблонизатором в глобальную область видимости.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exports { globals: true, commonJS: true, ym: true } => exports: { globals: true, commonJS: true, ym: true }?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 8f9b9a4 on feature/exports into dc2e7cc on master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 7360057 on feature/exports into dc2e7cc on master.

@blond
Copy link
Member

blond commented Jul 17, 2016

@zxqfox будем добивать?

@qfox qfox closed this Jul 24, 2020
@qfox qfox deleted the feature/exports branch July 24, 2020 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to explicit export method
3 participants