vagusX
vagusX
try this? ```js jest.mock('rc-motion/lib/util/motion', () => { return { ...jest.requireActual('rc-motion/lib/util/motion'), supportTransition: false, }; }); ```
Now is @babel/runtime ^7.11
麻烦提供更多的报错信息截屏,或者一个可复现的最小 repo
你额外安装了 @ant-design/icons 嘛?如果是codemod升级了的话,需要将 @ant-design/icons 升级到 4.0 才能正常使用的
这边考虑读取当前项目中的 .gitignore 跟 package.json 读取策略保持一致,并与 codemod.ignore https://github.com/ant-design/codemod-v4/blob/master/bin/codemod.ignore 合并后传给 jscodeshift https://github.com/facebook/jscodeshift/blob/d63aa8486c2099a65b071e7c86e9dccdb8577d80/bin/jscodeshift.js#L69 根据 jscodeshift 代码来看,多传一个 --ignore-config 即可,将嗅探到的 .gitignore 路径传入
@afc163 这个不光是 gitinogre 的问题,那个 history.ts 能发出来看看没?看着是有语法解析问题
```tsx if ((window).routerBase) { options.basename = (window).routerBase; } let history = createBrowserHistory(options); export const createHistory = (hotReload = false) => { if (!hotReload) { history = createBrowserHistory(options); } return history;...
https://stackoverflow.com/questions/35192796/babel-note-the-code-generator-has-deoptimised-the-styling-of-app-js-as-it-exc
https://stackoverflow.com/questions/30879773/how-to-handle-code-generator-has-deoptimised-styling-message-from-gulp-babel/30879872#30879872
Using `compact#false` can avoid this warning