Vue 3.0 终于来了,这次不再是假消息了。作者亲自微博宣布了源码github地址。以下是github相关截图:
可想而知在未来的一段时间内,我们将在社区中看到各种上手指南、源码阅读等等。
截图来自github
尤雨溪称,目前依然是 pre-alpha 状态,但主要的架构改进、优化和新功能都已经完成,剩下的主要是完成一些 Vue 2 现有功能的移植。
已完成的:
We have achieved most of the architectural goals and new features planned for v3:
Compiler
Modular architecture
'Block tree' optimization
More aggressive static tree hoisting
Source map support
Built-in identifier prefixing (aka 'stripWith')
Built-in pretty-printing
Lean ~10kb brotli-compressed browser build after dropping source map and identifier prefixing
Runtime
Significantly faster
Simultaneous Composition API + Options API support, with typings
Proxy-based change detection
Fragments
Portals
Suspense w/ async setup()
待完成的:
However, there are still some 2.x parity features not completed yet:
Server-side rendering
<keep-alive>
<transition>
Compiler DOM-specific transforms
v-on
DOM modifiers
v-model
v-text
v-pre
v-once
v-html
v-show
The current implementation also requires native ES2015+ in the runtime environment and does not support IE11 (yet).
还等什么?赶紧的,来不及啦!一起来看源码了提前学习前端开发框架巨头Vue.js 3.0吧!
传送门:https://github.com/vuejs/vue-next
联系客服