From 08955baff75f36f036da0d375fdde39908fdb1ab Mon Sep 17 00:00:00 2001 From: Bertrand Bordage Date: Fri, 1 Mar 2019 02:09:32 +0100 Subject: [PATCH] Adds polyfills to the examples build. --- example/index.story.js | 5 +++++ package.json | 2 ++ 2 files changed, 7 insertions(+) diff --git a/example/index.story.js b/example/index.story.js index 49ce949..dfd0c05 100644 --- a/example/index.story.js +++ b/example/index.story.js @@ -4,6 +4,11 @@ import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; +// Polyfills +import 'core-js/shim' +import 'element-closest'; +import 'custom-event-polyfill'; + import { StreamField, streamFieldReducer } from '../src'; import { complexNestedStreamField } from './samples' diff --git a/package.json b/package.json index 8819fcc..13d0b38 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,8 @@ "babel-jest": "^23.6.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.21", "css-loader": "^1.0.1", + "custom-event-polyfill": "^1.0.6", + "element-closest": "^3.0.1", "jest": "^23.6.0", "npx": "^10.2.0", "postcss-cli": "^6.1.1",