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

Commit

Permalink
Merge pull request #23 from ericf/browserify-es3
Browse files Browse the repository at this point in the history
Make Browserify bundle work in ES3 environments
  • Loading branch information
ericf committed Jan 16, 2015
2 parents 7f5de12 + 4443954 commit 37d9122
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
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 37d9122

Please sign in to comment.