Skip to content

Dots not supported in scopes #4510

@ma-jahn

Description

@ma-jahn

Version

3.10.0

Environment info

 System:
    OS: macOS 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  Binaries:
    Node: 10.15.3 - ~/.nvm/versions/node/v10.15.3/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.10.2 - ~/.nvm/versions/node/v10.15.3/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
    Safari: 12.1.2
  npmGlobalPackages:
    @vue/cli: 3.8.2

Steps to reproduce

Create a plugin wuth a name like @some.package/vue-cli-plugin-test

This plugin won't be recognized by vue-cli's reolvePlugin function.

What is expected?

The plugin will be recognized, is listed within vue-cli-service help and is executable.

What is actually happening?

Plugin is being skipped since it doesn't match pluginRE (shared-utils/lib/pluginResolution.js)


Changing pluginRE to something like:

^(@vue\/|vue-|@[\w-]+(\.)?[\w-]+\/vue-)cli-plugin-

should do the trick

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions