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.

Compiler.plugin was removed from webpack 5 #8

@moshner

Description

@moshner

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions