Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Webpack 4 deprecation warning #5

Description

@stormojm

Resources:
Before submitting an issue, please consult our docs.

Stencil version:
@stencil/webpack: 0.0.6

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request

Current behavior:
During compilation, webpack outputs a deprecation warning:
DeprecationWarning: Tapable.plugin is deprecated. Use new API on .hooks instead
at StencilPlugin.apply ((localpath)\node_modules@stencil\webpack\dist\index.js:14:18)
at webpack ((localpath)\node_modules\webpack\lib\webpack.js:49:13)

Expected behavior:
This plugin should be updated to work correctly with the Webpack 4 API, especially since webpack 5 will likely be dropping support for the older plugin apis.

Steps to reproduce:
Compile any webpack project which uses @stencil/webpack

Other information:
The culprit seems to be the use of .plugin('emit'). This should be updated to use the new .tab instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions