如何修改 '@umijs/babel-preset-umi
的默认配置?
#782
Replies: 2 comments 1 reply
-
暂时改不了, @Jinbao1001 看看能不能提供类似 Umi |
Beta Was this translation helpful? Give feedback.
0 replies
-
同样的, esbuild swc 也有类似的问题, 如果提供钩子, 建议都考虑 eg. https://swc.rs/docs/configuration/compilation#jsctransformusedefineforclassfields jsc: {
transform: {
useDefineForClassFields: false
},
} father 封装的太死了, 我还是放弃, 使用 tsc 编译算了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
father/src/builder/bundless/loaders/javascript/babel.ts
Line 90 in d647e1b
默认配置中
loose
为 false, 在如下场景会有问题, 类似 umijs/umi#9396https://github.com/umijs/umi/blob/master/packages/babel-preset-umi/src/index.ts#L31
在 father 这一层如何修改?
Beta Was this translation helpful? Give feedback.
All reactions