Skip to content

Commit

Permalink
Fix compatibility with ES3
Browse files Browse the repository at this point in the history
  • Loading branch information
tasti committed Jul 22, 2015
1 parent 236a9f2 commit e98964b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var m = require('./lib/core.js'),
IntlPolyfill = m.default;
IntlPolyfill = m['default'];

// Expose `IntlPolyfill` as global to add locale data into runtime later on.
global.IntlPolyfill = IntlPolyfill;
Expand All @@ -17,4 +17,4 @@ if (!global.Intl) {
// 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;
exports['default'] = IntlPolyfill;

0 comments on commit e98964b

Please sign in to comment.