webpack-deadcode-plugin
webpack-deadcode-plugin copied to clipboard
.options is not a valid Plugin property
Upon adding the following to my webpack config:
new DeadCodePlugin({
patterns: [
'src/**/*.(js|jsx|css)',
],
exclude: [
'**/*.(stories|spec).(js|jsx)',
],
})
I get the following error:
./src/index.js
Error: [BABEL] /Users/renatoalegre/Documents/BVDash/bvdash-web/src/index.js: .options is not a valid Plugin property
at Array.forEach (<anonymous>)
at Generator.next (<anonymous>)
at Generator.next (<anonymous>)
which webpack version are you using?
"webpack": "^4.31.0", "babel-loader": "^8.2.2",
Sorry for the late response, I cannot reproduce the issue, do you have a repo?
For whatever reason, I got past this somehow. I'll close.