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)
357
357
(function (global, factory) {
358
358
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
359
359
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]} );
361
361
}(this, (function () { 'use strict';
362
362
return {$ body }
363
363
})));
Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ function testBasicWithUMDFormat()
211
211
'(function (global, factory) { ' . PHP_EOL
212
212
. ' typeof exports === \'object \' && typeof module !== \'undefined \' ? module.exports = factory() : ' . PHP_EOL
213
213
. ' 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
215
215
. '}(this, (function () { \'use strict \'; ' . PHP_EOL
216
216
. ' return { ' . PHP_EOL
217
217
. ' "en": { ' . PHP_EOL
You can’t perform that action at this time.
0 commit comments