Browse Source

add IE8 support

John 8 years ago
parent
commit
43e3a712c8
3 changed files with 6 additions and 19 deletions
  1. 3 4
      package.json
  2. 1 3
      src/containers/AppContainer.js
  3. 2 12
      tools/webpack.config.js

+ 3 - 4
package.json

@@ -16,8 +16,9 @@
     "babel-plugin-transform-runtime": "^6.9.0",
     "babel-polyfill": "^6.9.0",
     "babel-preset-es2015": "^6.9.0",
+    "babel-preset-es2015-loose": "^7.0.0",
     "babel-preset-react": "^6.5.0",
-    "babel-preset-stage-0": "^6.5.0",
+    "babel-preset-stage-1": "^6.5.0",
     "babel-register": "^6.9.0",
     "babel-runtime": "^6.9.0",
     "browser-sync": "^2.12.8",
@@ -26,7 +27,6 @@
     "cpy": "^4.0.1",
     "css-loader": "^0.23.1",
     "del": "^2.2.0",
-    "es3ify-loader": "^0.2.0",
     "es5-shim": "^4.5.8",
     "eslint": "^2.10.2",
     "eslint-config-airbnb": "^9.0.1",
@@ -56,11 +56,10 @@
     "postcss-selector-matches": "^2.0.1",
     "postcss-selector-not": "^2.0.0",
     "react": "^0.14.8",
-    "react-app": "^1.0.0-alpha.3",
     "react-dom": "^0.14.8",
     "react-hot-loader": "^3.0.0-beta.2",
     "react-redux": "^4.4.5",
-    "react-router": "^2.4.1",
+    "react-router": "2.3.0",
     "react-router-redux": "^4.0.5",
     "redbox-react": "^1.2.6",
     "redux": "^3.5.2",

+ 1 - 3
src/containers/AppContainer.js

@@ -15,9 +15,7 @@ class AppContainer extends React.Component {
 
     return (
       <Provider store={store}>
-        <div style={{ height: '100%' }}>
-          <Router history={history} children={routes} key={routerKey} />
-        </div>
+        <Router history={history} children={routes} key={routerKey} />
       </Provider>
     )
   }

+ 2 - 12
tools/webpack.config.js

@@ -101,8 +101,8 @@ const config = {
           babelrc: false,
           presets: [
             'react',
-            'es2015',
-            'stage-0',
+            'es2015-loose',
+            'stage-1',
           ],
           plugins: [
             'transform-runtime',
@@ -143,10 +143,6 @@ const config = {
         loader: 'json-loader',
       },
       {
-        test: /\.md$/,
-        loader: path.resolve(__dirname, './webpack.markdown-loader.js'),
-      },
-      {
         test: /\.(png|jpg|jpeg|gif|svg|woff|woff2)$/,
         loader: 'url-loader?limit=10000',
       },
@@ -154,12 +150,6 @@ const config = {
         test: /\.(eot|ttf|wav|mp3)$/,
         loader: 'file-loader',
       },
-    ],
-    postLoaders: [
-      {
-        test: /\.js$/,
-        loaders: ['es3ify-loader']
-      }
     ]
   },