brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)
https://brainhub.eu/
MIT License
1.07k stars 164 forks source link

Super expression must either be null or a function when using webpack #677

Open dorivix opened 3 years ago

dorivix commented 3 years ago

Hi, I'm trying to use this package with webpack (terser plugin) and i'm getting this error. When I remove the minimizer and the Terser Plugin, I don't get any error. I was trying to look for solution but didn't find any.

This is the configuration I use

minimize: true,
    minimizer: [
      new TerserPlugin({
        terserOptions: {
          warnings: false,
          compress: {
            comparisons: false
          },
          parse: {},
          mangle: false,
          output: {
            comments: false,
            ascii_only: true
          }
        },
        parallel: true,
        cache: true,
        sourceMap: true
      })

and these are the versions:

"terser-webpack-plugin": "1.2.3",
"webpack": "^4.43.0"

Thanks

fabianosanttana commented 2 years ago

Up