问题描述1:
在使用pnpm build dist的时候,发现会有如下提示:
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
解决方案1:
pnpm up caniuse-lite
问题描述2:
在npm build的时候,尤其只使用node子线程进行build的时候,会出现如下警告:
[BABEL] Note: The code generator has deoptimised the styling of xxx as it exceeds the max of 500KB.
解决方案2:
使用bable配置解决
// babel.config.js:
module.exports = {
compact: false,
}