vscode-js-import icon indicating copy to clipboard operation
vscode-js-import copied to clipboard

Multiples alias

Open fukhaos opened this issue 4 years ago • 3 comments

There is a way to avoid doing that ?

    "javascript.updateImportsOnFileMove.enabled": "always",
    "javascript.preferences.importModuleSpecifier": "non-relative",
    "js-import.root": "/src",
    "js-import.alias": {
        "app/components": "/src/components",
        "app/styles": "/src/styles",
        "app/screens": "/src/screens",
        "app/images": "/src/images",
        "app/configs": "/src/configs",
        "app/hooks": "/src/hooks",
        "app/i18n": "/src/i18n",
        "app/lotties": "/src/lotties",
    },
}```

fukhaos avatar Mar 17 '20 18:03 fukhaos

@fukhaos you means you want a regexp config ?

wangtao0101 avatar Mar 18 '20 14:03 wangtao0101

Maybe or something like:

"js-import.alias": { "app/*": "/src/*", ...

fukhaos avatar Mar 19 '20 17:03 fukhaos

@fukhaos Currently i have no plan for this but i think it is feasible. Webpack and jest have different way to realize the feature

wangtao0101 avatar Mar 29 '20 04:03 wangtao0101