brainhubeu / react-carousel

A pure extendable React carousel, powered by Brainhub (craftsmen who ❤️ JS)

Home Page:https://brainhub.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dorivix opened this issue · comments

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