Chrome extension compiled by Webpack throws `unsafe-eval` error

Took me a few hours but what you probably want to do is change the style of source mapping webpack uses.
By default it uses eval.

https://webpack.js.org/configuration/devtool/

I added this to my webpack.config.js:

devtool: 'cheap-module-source-map'

The trick to this was figuring out why webpack --mode development has the error and webpack --mode production didn’t.

Also I’m using React not Polymer but I’m pretty sure this still applies.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)