MQuy / webpack-deadcode-plugin

Webpack plugin to detect unused files and unused exports in used files
MIT License
348 stars 16 forks source link

.options is not a valid Plugin property #32

Closed rarenatoe closed 1 year ago

rarenatoe commented 3 years ago

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>)
MQuy commented 3 years ago

which webpack version are you using?

rarenatoe commented 3 years ago

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

MQuy commented 2 years ago

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

rarenatoe commented 1 year ago

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