libmodulor
Version:
A TypeScript library to create platform-agnostic applications
9 lines (8 loc) • 382 B
JavaScript
export function bindProduct(container, productManifest, productI18n) {
// Using rebind because these are already bound by default in {@link bindCommon}.
// The goal is to make it easier to get started for a user.
container.rebindSync('I18n').toConstantValue(productI18n);
container
.rebindSync('ProductManifest')
.toConstantValue(productManifest);
}