如何修改 '@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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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