webpack-deadcode-plugin icon indicating copy to clipboard operation
webpack-deadcode-plugin copied to clipboard

.options is not a valid Plugin property

Open rarenatoe opened this issue 3 years ago • 3 comments

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>)

rarenatoe avatar Jun 07 '21 16:06 rarenatoe

which webpack version are you using?

MQuy avatar Jun 07 '21 16:06 MQuy

"webpack": "^4.31.0", "babel-loader": "^8.2.2",

rarenatoe avatar Jun 07 '21 20:06 rarenatoe

Sorry for the late response, I cannot reproduce the issue, do you have a repo?

MQuy avatar Sep 14 '21 21:09 MQuy

For whatever reason, I got past this somehow. I'll close.

rarenatoe avatar Oct 17 '22 22:10 rarenatoe