module.exports = function (source, map) {
    this.callback(null, `
    module.exports = function(Component) {
        var i18n = ${JSON.stringify(require('js-yaml').safeLoad(source))};
        window.__I18N_MAP = window.__I18N_MAP || {};
        for(var key in i18n){
            window.__I18N_MAP[key] = i18n[key]
        }
    }
    `, map)
}