2017-06-08_509bba0/509bba0_unpacked_with_node_modules/~/intl/index.js
2022-07-26 10:06:20 -07:00

28 lines
No EOL
822 B
JavaScript
Executable file

var m = require('./lib/core.js'),
IntlPolyfill = m.default;
// Expose `IntlPolyfill` as global to add locale data into runtime later on.
global.IntlPolyfill = IntlPolyfill;
// Require all locale data for `Intl`. This module will be
// ignored when bundling for the browser with Browserify/Webpack.
require('./locale-data/complete.js');
// hack to export the polyfill as global Intl if needed
if (!global.Intl) {
global.Intl = IntlPolyfill;
IntlPolyfill.__applyLocaleSensitivePrototypes();
}
// providing an idiomatic api for the nodejs version of this module
module.exports = exports = IntlPolyfill;
// preserving the original api in case another module is relying on that
exports.default = IntlPolyfill;
//////////////////
// WEBPACK FOOTER
// ./~/intl/index.js
// module id = 1203
// module chunks = 4