loostie
loostie
it essentially works by setting max_old_space_size?
I'm tring to use babel-plugin-istanbul for coverage, and I only care about the script part of the .vue file. In some vue projects, it's ok. But there are some vue...
When using Vue 2.7+ in my project, the compilation of template section will use the project's Babel configuration. However, I don't want the project's Babel configuration to be used exclusively...
### 问题描述 之前使用istanbul做覆盖率时不会对template进行插桩编译,但是删除lock文件重新安装依赖后istanbul也会对template部分插桩,由于我们使用远程服务器做覆盖率,使得一份.vue文件对应了两份覆盖率的计数器和文件结构,所以冲突了。 **更新前依赖**: vue-loader: 15.9.8 vue/vue-template-compiler: 2.6.14 **更新后依赖**: vue-loader: 15.10.1 vue/vue-template-compiler : 2.7.14 ### why? 想询问一下vue是否有做相关调整,导致项目引入的istanbul也会对template部分进行处理?对比前后验证了很久没找到是哪个依赖项更新导致的这个变化。 ### How? 想请教一下是否能够拦截掉某个babel插件对template进行处理?或者babel编译中能否识别vue的template部分(感觉不行,istanbul处理时已经是render函数)
### 错误信息 Input is not defined ### 对应代码: ``` import {Input, InputNumber } from 'antd'; const FinalInput = ComponentType === 'number' ? InputNumber: Input; ``` ### istanbul插桩结果 ``` var FinalInput...
When I want to calculate the index of Q8, I found I don't have the code. So, I would be grateful if you could give it to me.
[[English Template / 英文模板](https://github.com/alibaba/hooks/blob/master/.github/PULL_REQUEST_TEMPLATE.md)] ### 🤔 这个变动的性质是? - [ ] 新特性提交 - [x] 日常 bug 修复 - [x] 站点、文档改进 - [ ] 演示代码改进 - [ ] TypeScript 定义更新 - [...
在使用useDeepCompareEffect时,依赖了一个对象,当对象变更时会将对象赋值给Form组件,当表单项更改会使得传入对象被修改,此时useDeepCompareEffect的data并没有改变,但useDeepCompareEffect会判断依赖变了,执行副作用,导致表单编辑内容丢失。 原因:useDeepCompareEffect存储依赖时是进行的浅拷贝,获取依赖对Form组件赋值时没有克隆,表单项修改导致传入对象被修改导致下一次hook执行时判断依赖更新了。 代码如下所示: ``` const Demo = (props)=> { const {data} = props; const formRef = useRef(null); useDeepCompareEffect(()=> { const curFormData = data; formRef. setFieldValue(curFormData); }, [data]) return more }