Skip to content

vue-loader 14.1.0 ignores transformToRequire config #1171

Closed
@andreyrd

Description

@andreyrd

Version

14.1.0

Reproduction link

https://github.com/andreyrd/vue-loader-transformtorequire-demo

Steps to reproduce

  1. Clone the repo.
  2. Run yarn install to install the project with vue-loader: 14.0.0.
  3. Run yarn dev and note that there are two Vue logos showing up, one after the other.
  4. Stop the server.
  5. Edit the package.json and update vue-loader to 14.1.0.
  6. Run yarn install to install vue-loader: 14.1.0.
  7. 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

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