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

This commit is contained in:
Rushan 2017-03-22 02:18:07 +05:30 committed by Harshavardhana
parent 97dc34fe06
commit fbfb4fc5a0
3 changed files with 9 additions and 10 deletions

View File

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

View File

@ -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)

View File

@ -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')