Skip to content

Commit

Permalink
remove babel-polyfill dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
meikidd committed Dec 7, 2017
1 parent 9aa788d commit 56b8bd0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ var _data2 = _interopRequireDefault(_data);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

if (typeof window !== 'undefined' && !window._babelPolyfill || typeof global !== 'undefined' && !global._babelPolyfill) {
require('babel-polyfill');
}

var ISO6391 = function ISO6391() {
(0, _classCallCheck3.default)(this, ISO6391);
};
Expand Down
5 changes: 0 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import LANGUAGES_LIST from './data';

if((typeof window !== 'undefined' && !window._babelPolyfill) ||
(typeof global !== 'undefined' && !global._babelPolyfill)) {
require('babel-polyfill')
}

export default class ISO6391 {
static getLanguages = (codes = []) => (
Object.entries(LANGUAGES_LIST)
Expand Down

0 comments on commit 56b8bd0

Please sign in to comment.