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

Add alias config for path #16

Open
risenW opened this issue Dec 16, 2020 · 1 comment
Open

Add alias config for path #16

risenW opened this issue Dec 16, 2020 · 1 comment

Comments

@risenW
Copy link
Member

risenW commented Dec 16, 2020

import Image from "../../src/image/image-proc";
import {stdCalc} from "../../src/image/utils";
import Image from "../../../src/image/image-proc";
import {stdCalc} from "../../../src/image/utils";

This relative path looks too long, shall we have an alias config for the directory "../../../src" as "@/image/utils"?

Suggestion: Usen the package module-alias

@yorkie
Copy link
Member

yorkie commented Dec 28, 2020

The "@/image/utils" conflicts with NPM scoped package, may we have another choose just like ~?

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

No branches or pull requests

2 participants