react-popover
react-popover copied to clipboard
IE10 support with const
Hey, I am using react-popover in my create-react-app. After i build my project and test it in IE10 i get a syntax error on react-popover/index.js on the line: const lib = require("./build"). I have a ready branch to pull request requesting to change that one line to get support for IE10. #
I have an open pull request for that #158
So i found a work around and i am now just importing 'Popover' from 'react-popover/build' instead of 'react-popover'
By adding this line in my webpack.config.js, fix the problem.
rules: [{
test: /\.jsx?$/,
loader: 'babel-loader',
include: [
// here is the code
/node_modules[\\/]react-popover/,
],