Skip to content

Deprecation warning with webpack 4 #22

@tzimmermann

Description

@tzimmermann

Usingwebpack 4.1.1, I get this warning during webpack build:

(node:40693) DeprecationWarning: Tapable.plugin is deprecated. Use new API on.hooksinstead

With help of webpack/webpack#6568 (comment), I was able to trace the culprit to being the unused-files-webpack-plugin:

at UnusedFilesWebpackPlugin.apply (/Users/tz-mac/Repos/pex-client/node_modules/unused-files-webpack-plugin/lib/index__8.0.0__.js:105:14) at webpack (/Users/tz-mac/Repos/pex-client/node_modules/webpack/lib/webpack.js:37:12)

which refers to this line:

compiler.plugin(`after-emit`, (compilation, done) =>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions