From 93c46ed1c0ced5d110ea8d80efc0df9ef8764e13 Mon Sep 17 00:00:00 2001 From: Jeffrey D Johnson Date: Tue, 17 Jul 2018 00:31:07 -0700 Subject: [PATCH] Adding babel polyfill to docs-site for IE11 compatibility (#1376) --- package.json | 1 + webpack.docs.config.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b6b08ad97..0b2501767 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "babel-plugin-react-transform": "^3.0.0", "babel-plugin-transform-class-properties": "^6.24.1", "babel-plugin-transform-react-remove-prop-types": "^0.4.10", + "babel-polyfill": "^6.26.0", "babel-preset-airbnb": "^2.4.0", "babel-preset-env": "^1.6.1", "babel-preset-react": "^6.24.1", diff --git a/webpack.docs.config.js b/webpack.docs.config.js index c80db3cd7..795734150 100644 --- a/webpack.docs.config.js +++ b/webpack.docs.config.js @@ -3,7 +3,7 @@ var webpack = require("webpack"); var ExtractTextPlugin = require("extract-text-webpack-plugin"); module.exports = { - entry: ["./docs-site/src/boot"], + entry: ["babel-polyfill", "./docs-site/src/boot"], output: { path: path.resolve("./docs-site/"), filename: "bundle.js",