当前位置:网站首页>What are the differences between vite and wenpack?
What are the differences between vite and wenpack?
2022-07-26 03:58:00 【Tall baby】
1、vite When running, it is better than webpack It's a lot faster .
2、 Why fast ? because weebpack During operation , Is to package the whole project , and vite In fact, it is only necessary to pack temporarily .
3、Vite With Native ESM Mode service source code . This is actually getting the browser to take over part of the work of the wrapper :Vite You just need to convert when the browser requests the source code and provide the source code on demand . Code imported dynamically according to the situation , That is, it will only be processed when it is actually used on the current screen .
4、Vite Will use esbuild Pre built dependencies .Esbuild Use Go To write , And compared with Node.js The prepackaged dependency of the written packer is fast 10-100 times .
Vite Problems faced
1、 Ecology is not as good as webpack,wepback What's so compelling is loader and plugin A very rich , But anything is not absolute, and there is still a long way to go .
2、prod The construction of the environment , Current Rollup, The reason lies in esbuild about css And code segmentation are not very friendly .
3、 It has not been used on a large scale , Many problems or demands are not really exposed , With Vue3 The rapid spread of ,Vite It should be first considered by everyone soon .
边栏推荐
- 基于JSP实现网上商城系统
- Asemi rectifier bridge gbu1510 parameters, gbu1510 specifications, gbu1510 package
- Connect external MySQL databases in istio Service Grid
- Graduation season & harvest season, leave your beautiful moments
- 微信小程序实现音乐播放器(5)
- A large factory developed and tested one, and strangled its neck with a mouse line
- Visio: how do Gantt charts merge cells? Solution: overwrite cells
- 【Unity3d Shader】角色投影与倒影
- [cloud native kubernetes] how to use configmap under kubernetes cluster
- 如何构建面向海量数据、高实时要求的企业级OLAP数据引擎?
猜你喜欢

Worked overtime for a week to develop a reporting system. This low code free it reporting artifact is very easy to use

容器跑不动?网络可不背锅
![[mathematical modeling - Summary of planning model] | matlab solution](/img/b0/a4d33d7d7b605b7cc6149b59b55fb8.png)
[mathematical modeling - Summary of planning model] | matlab solution

Bracket nesting problem (recommended Collection)

Verilog implementation of key dithering elimination

One stop monitoring of the software and hardware infrastructure of the whole university, and Suzhou University replaces PostgreSQL with time series database

Summary of senior report development experience: understand this and do not make bad reports

PHP method to find the location of session storage file

5年1.4W倍,NFT OG 的封神之路|Web3专栏

A large factory developed and tested one, and strangled its neck with a mouse line
随机推荐
CPU and GPU are out of date, and the era of NPU and APU begins
Worked overtime for a week to develop a reporting system. This low code free it reporting artifact is very easy to use
苹果在其产品中拿掉了最后一颗Intel芯片
redux
Synchronous FIFO based on shift register
[深入研究4G/5G/6G专题-42]: URLLC-13-《3GPP URLLC相关协议、规范、技术原理深度解读》-7-低延时技术-1-子载波间隔扩展
laravel8 实现接口鉴权封装使用JWT
基于移位寄存器的同步FIFO
座椅/安全配置升级 新款沃尔沃S90行政体验到位了吗
基于SSM选课信息管理系统
cpu和gpu已过时,npu和apu的时代开始
括号嵌套问题(建议收藏)
WAF details
Moco V2: further upgrade of Moco series
Data elements
Multi merchant mall system function disassembly lecture 15 - platform side member label
booking.com缤客上海面经
Bond network mode configuration
Chinese database oceanbase was selected into the Forrester translational data platform report
【云原生】谈谈老牌消息中间件ActiveMQ的理解