Skip to content

VueLoaderPlugin may cause webpack 5's Rule.use configuration to be lost #1779

Open
@gaodeng

Description

@gaodeng

Version

15.x & 16.x

Reproduction link

https://github.com/gaodeng/VueLoaderPlugin-Bug

Steps to reproduce

If Rule.use is a function, the VueLoaderPlugin will cause the Rule.use configuration to be lost and the value to become an empty array.

Clone the code repository at https://github.com/gaodeng/VueLoaderPlugin-Bug

npm i

npm run build

Then open the webpack.config.js file and comment out the

new VueLoaderPlugin()  

Run again

npm run build

Compare the difference in the console output

What is expected?

VueLoaderPlugin should not cause Rule.use configuration to be lost.

What is actually happening?

If Rule.use is a function, the VueLoaderPlugin causes the Rule.use configuration to be lost.


This problem exists in both 15.x and 16.x versions

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