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

tsconfig.json & babelrc 等配置文件的定位 #43

Open
nighca opened this issue Dec 12, 2017 · 2 comments
Open

tsconfig.json & babelrc 等配置文件的定位 #43

nighca opened this issue Dec 12, 2017 · 2 comments
Labels

Comments

@nighca
Copy link
Collaborator

nighca commented Dec 12, 2017

RT,现在稍微有点混乱,比如 babel 的配置会由 builder 传入,而不使用 babelrc;ts 的构建行为现在主要是 tsconfig.json 决定,而不是 builder,却会影响 builder 本身的行为;

需要整理一下,感觉还是需要放信息到外边配置文件里(比如编辑器需要读取 tsconfig.json 来决定自己的行为);但是这个配置文件的内容需要被 builder 检查或干脆由 builder 生成,不用开发者自己维护

相关项目: https://github.com/timarney/react-app-rewired

@nighca
Copy link
Collaborator Author

nighca commented Nov 1, 2021

Next.js 12 目前会对 tsconfig.json 做修改:

image

@nighca
Copy link
Collaborator Author

nighca commented Dec 24, 2021

带着 #149 提到的

  1. 对于 Typescript 项目,builder 自己去读取 tsconfig 中对于 paths 的配置,并添加对应的 resolve alias

一起考虑;主要针对 tsconfig 中 paths 与 build-config 中 resolve.alias 的关系

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

No branches or pull requests

1 participant