GithubHelp home page GithubHelp logo

bushanjiangzi / vue3-vite Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 33 KB

vue3.0中的响应式原理和Composition API解析,以及vite编译原理浅析

HTML 12.65% JavaScript 73.26% Vue 13.92% CSS 0.17%

vue3-vite's Introduction

npm install

npm run dev

npm run build

1、响应式原理浅析 reactivity文件夹 直接运行 reactivity/index.html至浏览器

2、vue3.0初试,Composition API npm run dev

3、vite原理原理解析 node server.js

编译时的优化 Vue3最大的特点

vite ,按需加载 现代浏览器都支持es6的import了 import xx from './a.js',浏览器会发出一个网络请求 vite拦截这个请求,去做vue相关的编译,解析等,实现了按需加载的能力 不用打包 dev秒开,build走的是rollup

  1. vue2也有静态标记 ,只能标记全量的静态 v-if内部的静态节点

    {{name}}

    这个节点,只有child是动态, vue也会全量diff vue3只diff children

vue3-vite's People

Contributors

bushanjiangzi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.