react-popover icon indicating copy to clipboard operation
react-popover copied to clipboard

IE10 support with const

Open eran7789 opened this issue 8 years ago • 3 comments

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. #

eran7789 avatar Nov 14 '17 08:11 eran7789

I have an open pull request for that #158

eran7789 avatar Nov 14 '17 09:11 eran7789

So i found a work around and i am now just importing 'Popover' from 'react-popover/build' instead of 'react-popover'

eran7789 avatar Nov 16 '17 14:11 eran7789

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/,
            ],

Topppy avatar Apr 12 '19 10:04 Topppy