-
Notifications
You must be signed in to change notification settings - Fork 203
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
chore: optimizing the build toolchain #1788
Conversation
lock 文件要不从仓库去掉? |
是遇到什么问题了么? |
vite 的 sourcemap 没有生效是什么原因 |
tsconfig 的配置不太对,以及 tsc 只支持处理包源码的 sourcemap,会直接忽略包依赖的 sourcemap,导致生成的 sourcemap 异常,除非将 src(或编译后的产物)也发布到 npm 才可以 |
现在是把 src 发布到 npm 吗 |
没有,只会发布 dist 目录,即打包后的单文件,不发布编译 src(或编译后产生的 js 源代码)的目录 |
126c5a1
to
dbd86fb
Compare
* chore: optimizing the build toolchain (#1788) * chore: optimizing the build toolchain * chore: dealing with legacy eslint rule issues * chore: fix logic errors during refactoring * chore: generate type files in real time during the dev * chore: fix eslint issues * chore: sync to next branch * fix: fix angle value parse (#1796) * fix: fix angle value parse * chore: commit changeset * perf: optimize large image rendering performance (#1798) * Version Packages (#1799) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: 不如怀念(云谌) <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
🤔 This is a ...
🔗 Related issue link
see #1781 , etc.
💡 Background and solution
Adjust the rollup code compilation tool chain to babel, because babel has more refined control over the code than typescript and can correctly handle dependent sourcemaps.
Fix the code formatting conflict between eslint and prettier, and also solve the problem that all configuration rules of eslint are not really effective.
In summary, the above measures fix the following issues:
In addition, by introducing some rollup plug-ins, we prepare for subsequent engineering optimization.