Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit e98964b

Browse files
committed
Fix compatibility with ES3
1 parent 236a9f2 commit e98964b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var m = require('./lib/core.js'),
2-
IntlPolyfill = m.default;
2+
IntlPolyfill = m['default'];
33

44
// Expose `IntlPolyfill` as global to add locale data into runtime later on.
55
global.IntlPolyfill = IntlPolyfill;
@@ -17,4 +17,4 @@ if (!global.Intl) {
1717
// providing an idiomatic api for the nodejs version of this module
1818
module.exports = exports = IntlPolyfill;
1919
// preserving the original api in case another module is relying on that
20-
exports.default = IntlPolyfill;
20+
exports['default'] = IntlPolyfill;

0 commit comments

Comments
 (0)