Browser: Use polyfill to support Object.assign in IE11 (#3942)

master
Rushan 8 years ago committed by Harshavardhana
parent 97dc34fe06
commit fbfb4fc5a0
  1. 13
      browser/.babelrc
  2. 2
      browser/app/index.js
  3. 2
      browser/webpack.config.js

@ -1,8 +1,9 @@
{ {
"presets": [ "presets": [
"es2015", "es2015",
"react" "react"
], ],
"plugins": [
"plugins": ["transform-object-rest-spread"] "transform-object-rest-spread"
]
} }

@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
import 'babel-polyfill'
import './less/main.less' import './less/main.less'
@ -44,7 +45,6 @@ import Web from './js/web'
window.Web = Web window.Web = Web
import storage from 'local-storage-fallback' import storage from 'local-storage-fallback'
const store = applyMiddleware(thunkMiddleware)(createStore)(reducer) const store = applyMiddleware(thunkMiddleware)(createStore)(reducer)
const Browse = connect(state => state)(_Browse) const Browse = connect(state => state)(_Browse)
const Login = connect(state => state)(_Login) const Login = connect(state => state)(_Login)

@ -22,7 +22,6 @@ var purify = require("purifycss-webpack-plugin")
var exports = { var exports = {
context: __dirname, context: __dirname,
entry: [ entry: [
"babel-polyfill",
path.resolve(__dirname, 'app/index.js') path.resolve(__dirname, 'app/index.js')
], ],
output: { output: {
@ -101,7 +100,6 @@ var exports = {
if (process.env.NODE_ENV === 'dev') { if (process.env.NODE_ENV === 'dev') {
exports.entry = [ exports.entry = [
"babel-polyfill",
'webpack/hot/dev-server', 'webpack/hot/dev-server',
'webpack-dev-server/client?http://localhost:8080', 'webpack-dev-server/client?http://localhost:8080',
path.resolve(__dirname, 'app/index.js') path.resolve(__dirname, 'app/index.js')

Loading…
Cancel
Save