Compiler.plugin was removed from webpack 5
moshner opened this issue · comments
Resources:
Before submitting an issue, please consult our docs.
Stencil version: (run npm list @stencil/webpack
from a terminal/cmd prompt and paste output below):
@stencil/webpack@0.0.6
I'm submitting a ... (check one with "x")
Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com
[x] bug report
[ ] feature request
Current behavior:
[webpack-cli] TypeError: compiler.plugin is not a function
at StencilPlugin.apply (C:\bitbucket\projects\ui\aafp-brand-components\node_modules@stencil\webpack\dist\index.js:14:18)
Expected behavior:
Build without errors
Steps to reproduce:
Upgrade to Webpack 5.26.3, possibly all of webpack 5. Use the 'new stencil.StencilPlugin(),' code as documented on the README.md of this repo
Related code:
insert any relevant code here
Other information:
webpack/webpack#11672