xcatliu / react-ie8

Make your React app work in IE8
http://react-ie8.xcatliu.com/
998 stars 162 forks source link

使用hello world的example在IE8上依然出现Object.defineProperty问题 #19

Closed BinLiang1990 closed 8 years ago

BinLiang1990 commented 8 years ago

使用hello world的example在IE8上依然出现Object.defineProperty问题,目测是babel6的打包问题,不过还没有解决,有看到说是用babel6-loose-mode来解决的。求更新

xcatliu commented 8 years ago

收到,我先看看是什么问题。

xcatliu commented 8 years ago

@EdenLiang 我这边 hello world 的 example 在 IE8 下是正常的,我的 npm 和 node 版本:

npm -v
3.5.2
node -v
v4.2.2

你的版本是多少?

BinLiang1990 commented 8 years ago

webpack的问题,用生产环境就好了,另外我这边可以用import方式导入 入口文件如下 import 'core-js/fn/object/assign' import 'es6-promise'; import 'fetch-ie8'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/root';