vuejs / vue-loader

📦 Webpack loader for Vue.js components
MIT License
4.99k stars 914 forks source link

vue-loader currently does not support vue rules with oneOf #1861

Open AideyTry opened 3 years ago

AideyTry commented 3 years ago

Version

15.9.6

Reproduction link

https://github.com/aidenfly/testing-oneOf.git

Steps to reproduce

Run command

  1. git clone https://github.com/aidenfly/testing-oneOf.git
  2. yarn
  3. yarn start

What is expected?

vue-loader can support oneOf

What is actually happening?

vue-loader currently does not support vue rules with oneOf


oneOf is a function of webpack (oneOf是webpack的功能)

nolimitdev commented 2 years ago

vue-loader v17.0.0 was released but this still not fixed, is there something new?

LeonorPDX commented 2 years ago

This is still an issue.

vue: 3.2.37
vue-loader: 17.0.0
webpack: 5.73.0

As mentioned in this comment, I'm using unshift to add the vue rule at the beginning on the webpack rules before the oneOf block, but continue to get the error vue-loader currently does not support vue rules with oneOf