We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
alias
这里是对 #33 中 alias 部分的细化
涉及的能力类似 webpack 的 resolve alias
在 webpack 的 resolve 逻辑上,目前我们约定对于 srcDir 下的内容 <srcDir>/foo,均可以通过 foo 来引入;这导致
srcDir
<srcDir>/foo
foo
baseUrl: <srcDir>
node_modules
@/foo
需要考虑下我们怎么去支持更合理的行为,可能的姿势是:
paths
此外这个也会与 #43 有一定的相关性
The text was updated successfully, but these errors were encountered:
已在 #158 中支持,对于上面提到的
对于 Typescript 项目,builder 自己去读取 tsconfig 中对于 paths 的配置,并添加对应的 resolve alias
后续在 #43 中跟进
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
这里是对 #33 中 alias 部分的细化
涉及的能力类似 webpack 的 resolve
alias
在 webpack 的 resolve 逻辑上,目前我们约定对于
srcDir
下的内容<srcDir>/foo
,均可以通过foo
来引入;这导致baseUrl: <srcDir>
以保持 tsc 与 webpack 行为的一致srcDir
下的目录/文件名的不确定性,很容易跟node_modules
中的包名冲突),而像@/foo
的方式可能是更合理的需要考虑下我们怎么去支持更合理的行为,可能的姿势是:
paths
的配置,并添加对应的 resolvealias
alias
进行配置的能力此外这个也会与 #43 有一定的相关性
The text was updated successfully, but these errors were encountered: