This repository was archived by the owner on Jul 16, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -357,7 +357,7 @@ private function getUMDModule($body)
357357(function (global, factory) {
358358 typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
359359 typeof define === 'function' && define.amd ? define(factory) :
360- ( global.vuei18nLocales = factory());
360+ typeof global.vuei18nLocales === 'undefined' ? global.vuei18nLocales = factory() : Object.keys(factory()).forEach(function (key) { global.vuei18nLocales[key] = factory()[key]} );
361361}(this, (function () { 'use strict';
362362 return {$ body }
363363})));
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ function testBasicWithUMDFormat()
211211 '(function (global, factory) { ' . PHP_EOL
212212 . ' typeof exports === \'object \' && typeof module !== \'undefined \' ? module.exports = factory() : ' . PHP_EOL
213213 . ' typeof define === \'function \' && define.amd ? define(factory) : ' . PHP_EOL
214- . ' ( global.vuei18nLocales = factory()); ' . PHP_EOL
214+ . ' typeof global.vuei18nLocales === \' undefined \' ? global.vuei18nLocales = factory() : Object.keys(factory()).forEach(function (key) { global.vuei18nLocales[key] = factory()[key]} ); ' . PHP_EOL
215215 . '}(this, (function () { \'use strict \'; ' . PHP_EOL
216216 . ' return { ' . PHP_EOL
217217 . ' "en": { ' . PHP_EOL
You can’t perform that action at this time.
0 commit comments