Remove transform-runtime

We use instance methods (or at least, draft.js does) so we need
babel-polyfill instead.
This commit is contained in:
David Baker 2016-10-13 10:57:10 +01:00
parent 18450058d7
commit 82de2ca4ec
3 changed files with 12 additions and 2 deletions

View file

@ -16,6 +16,15 @@ limitations under the License.
'use strict';
// for ES6 stuff like startsWith() that Safari doesn't handle
// and babel doesn't do by default
// Note we use this, not the babel transform-runtime plugin
// since transform-runtime does not cover instance methods
// such as "foobar".includes("foo") which bits of our library
// code use.
// https://babeljs.io/docs/plugins/transform-runtime/
require('babel-polyfill');
// CSS requires: just putting them here for now as CSS is going to be
// refactored soon anyway
require('../../vector/components.css');