Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
Make Browserify bundle work in ES3 environments
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Jan 13, 2015
1 parent 7f5de12 commit 4443954
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -2,7 +2,7 @@

'use strict';

var IntlRelativeFormat = require('./lib/main').default;
var IntlRelativeFormat = require('./lib/main')['default'];

// Add all locale data to `IntlRelativeFormat`. This module will be ignored when
// bundling for the browser with Browserify/Webpack.
Expand All @@ -12,4 +12,4 @@ require('./lib/locales');
// locale data registered, and with English set as the default locale. Define
// the `default` prop for use with other compiled ES6 Modules.
exports = module.exports = IntlRelativeFormat;
Object.defineProperty(exports, 'default', {value: exports});
exports['default'] = exports;

0 comments on commit 4443954

Please sign in to comment.