Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set @/whatever import path as not scoped package #2145

Closed
rperello opened this issue Jul 6, 2021 · 0 comments · Fixed by #2146
Closed

Set @/whatever import path as not scoped package #2145

rperello opened this issue Jul 6, 2021 · 0 comments · Fixed by #2146

Comments

@rperello
Copy link

rperello commented Jul 6, 2021

Actually imports like these are matching scopedRegExp in isScope function. In the example below is not a scoped package, is only an alias to src folder

import UnitDevice from '@/components/UnitDevice'

So my proposal is to change from

const scopedRegExp = /^@[^/]*\/?[^/]+/

to this:

const scopedRegExp = /^@[^/]+\/?[^/]+/

which i have tested

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant