vue2.x源码解析准备--Runtime Only 和 Runtime+Compiler
2018-10-03 12:55
225 查看
vue2.x源码解析准备–Runtime Only 和 Runtime+Compiler
1.1 Runtime Only
Runtime Only相比Runtime+Compiler更加轻量,但是缺点是不能够编译jsx,在vue源码中,无论是render函数,还是template最终都是编译成render函数进行渲染的,所以,使用Runtime Only有时需要自己手动配置webpack对模板语法进行编译。
1.2 Runtime+Compiler
常用的就是Runtime+Compiler,不需要自己手写render。
阅读更多相关文章推荐
- Thrift之代码生成器Compiler原理及源码详细解析3
- 比特币源码解析(3) - 准备知识 - Boost
- ClassPathXmlApplicationContext源码解析一:准备工作
- Thrift之代码生成器Compiler原理及源码详细解析1
- 比特币源码解析(4) - 准备知识 - libevent & QT
- 比特币源码解析(4) - 准备知识 - libevent & QT
- 阿里路由框架ARouter 源码解析之Compiler
- [置顶] 阿里路由框架--ARouter 源码解析之Compiler
- System与Runtime源码解析
- webpack打包vue2.0,[Vue warn]: You are using the runtime-only build of Vue where the template compiler
- You are using the runtime-only build of Vue where the template compiler is not available. Either pre
- 人脸检测源码解析——3、准备数据
- spring源码解析-准备工作
- MyBatis源码解析【1】准备工作
- 比特币源码解析(2) - 准备知识 - Boost
- struts2源码解析--前期准备
- tensorflow源码解析之common_runtime-direct_session
- Thrift之代码生成器Compiler原理及源码详细解析2
- MyBatis-3.4.2-源码分析11:XML解析之environmentsElement+Druid的解析准备工作:整合Druid
- 5.2 dubbo-compiler源码解析