Closed
Description
Version
14.1.0
Reproduction link
https://github.com/andreyrd/vue-loader-transformtorequire-demo
Steps to reproduce
- Clone the repo.
- Run
yarn install
to install the project withvue-loader: 14.0.0
. - Run
yarn dev
and note that there are two Vue logos showing up, one after the other. - Stop the server.
- Edit the
package.json
and updatevue-loader
to14.1.0
. - Run
yarn install
to installvue-loader: 14.1.0
. - Run
yarn dev
and note that the second Vue logo no longer shows up.
What is expected?
The second image should be showing up.
The second image is a custom component that relies on the transformToRequire config to have Test: 'source'
in order to transform it's source
prop into a require()
statement.
See build/vue-loader.conf.js
for the config I'm talking about.
What is actually happening?
Since 14.1.0, vue-loader
is ignoring the transformToRequire
property in the config.
I believe the bug was introduced here: 289b4d9#diff-7c7d4918b118d27d18538f53b8155e88L138
Metadata
Metadata
Assignees
Labels
No labels