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

Webpack 4 deprecation warning #5

Open
stormojm opened this issue Jul 5, 2019 · 0 comments
Open

Webpack 4 deprecation warning #5

stormojm opened this issue Jul 5, 2019 · 0 comments

Comments

@stormojm
Copy link

stormojm commented Jul 5, 2019

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant