enb / enb-bem-i18n

BEM internationalization for ENB
Other
8 stars 7 forks source link

Exports Option #66

Closed blond closed 9 years ago

blond commented 9 years ago

The ability to choose environment for i18n bundle. By default it exports to all environments: CommonJS, YModules, and if nothing to global scope.

For, examples, if need exports to global scope only:

exports: {
    globals: true,
    commonJS: false,
    ym: false
}

To force exports to global scope in CommonJS or Ymodules you can use force value:

exports: {
    globals: 'force',
    commonJS: true
}