Skip to content

Commit a842618

Browse files
committed
Fix render in IE11
1 parent 9ed0489 commit a842618

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"plugins": [
33
"react-hot-loader/babel",
44
"@babel/plugin-proposal-class-properties",
5-
"@babel/plugin-syntax-dynamic-import"
5+
"@babel/plugin-syntax-dynamic-import",
6+
"styled-components"
67
],
78
"presets": [
89
["@babel/preset-env", { "useBuiltIns": "entry" }],

build_scripts/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const helpers = require('./webpack-helpers')
2525

2626
module.exports = {
2727
mode: helpers.isProduction ? 'production' : 'development',
28-
entry: path.resolve(helpers.browserPath, 'index.jsx'),
28+
entry: ['babel-polyfill', path.resolve(helpers.browserPath, 'index.jsx')],
2929
output: {
3030
filename: 'app-[hash].js',
3131
publicPath: '',
@@ -52,6 +52,7 @@ module.exports = {
5252
},
5353
devtool: helpers.isProduction ? false : 'inline-source-map',
5454
devServer: {
55+
host: '0.0.0.0',
5556
port: 8080,
5657
disableHostCheck: true,
5758
hot: !helpers.isProduction

src/browser/init.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
* You should have received a copy of the GNU General Public License
1818
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1919
*/
20-
import 'babel-polyfill'
2120
import './styles/bootstrap.grid-only.min.css'
2221
import './styles/streamline.css'
2322
import './styles/editor.css'

0 commit comments

Comments
 (0)