Skip to content

Commit 155728b

Browse files
committed
make babel actually do full ES6 emulation for Safari 8
1 parent 98551c3 commit 155728b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"prepublish": "npm run build:css && npm run build:compile"
2828
},
2929
"dependencies": {
30+
"babel-polyfill": "^6.5.0",
3031
"classnames": "^2.1.2",
3132
"extract-text-webpack-plugin": "^0.9.1",
3233
"filesize": "^3.1.2",

‎src/vector/index.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ limitations under the License.
1616

1717
'use strict';
1818

19+
// for ES6 stuff like startsWith() that Safari doesn't handle
20+
// and babel doesn't do by default
21+
require('babel-polyfill');
22+
1923
// CSS requires: just putting them here for now as CSS is going to be
2024
// refactored soon anyway
2125
require('../../vector/components.css');

0 commit comments

Comments
 (0)