当前位置:网站首页>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 .
边栏推荐
- STM32 state machine programming example - full automatic washing machine (Part 2)
- Chinese database oceanbase was selected into the Forrester translational data platform report
- Laravel8 implements interface authentication encapsulation using JWT
- 中国数据库 OceanBase 入选 Forrester Translytical 数据平台报告
- Analysis on the infectious problem of open source license
- Hcip day 14
- Opencv learning notes -- Hough transform
- Oracle 11g "password delayed verification" feature
- A large factory developed and tested one, and strangled its neck with a mouse line
- 基于JSP实现网上商城系统
猜你喜欢

Analysis on the infectious problem of open source license

1311_硬件设计_ICT概念、应用以及优缺点学习小结

How does redis implement persistence? Explain the AOF trigger mechanism and its advantages and disadvantages in detail, and take you to quickly master AOF

Save the image with gaussdb (for redis), and the recommended business can easily reduce the cost by 60%

某大厂开发和测试干了一架,还用鼠标线勒脖子...

php 查找 session 存储文件位置的方法

安装VMware报错failed to install the hcmon driver

Connect external MySQL databases in istio Service Grid

The convolution kernel is expanded to 51x51, and the new CNN architecture slak counterattacks the transformer

Supervit for deep learning
随机推荐
Visio: how do Gantt charts merge cells? Solution: overwrite cells
oracle 11g “密码延迟验证”特性
Wechat applet realizes music player (5)
6年从零开始的自动化测试之路,开发转测试我不后悔...
【数字IC/FPGA】热独码检测
Experimental reproduction of image classification (reasoning only) based on caffe resnet-50 network
【程序员必备】七夕表白攻略:”月遇从云,花遇和风,晚上的夜空很美“。(附源码合集)
【Unity3d Shader】角色投影与倒影
开源许可证的传染性问题浅析
Find My技术|物联网资产跟踪市场规模达66亿美元,Find My助力市场发展
Synchronous FIFO based on shift register
[class and object instances in kotlin]
File upload error: current request is not a multipart request
基于Caffe ResNet-50网络实现图片分类(仅推理)的实验复现
ASEMI整流桥GBU1510参数,GBU1510规格,GBU1510封装
zk-SNARK:关于私钥、环签名、ZKKSP
ZK snark: about private key, ring signature, zkksp
php 查找 session 存储文件位置的方法
What is the problem of the time series database that has been developed for 5 years?
Failed to install the hcmon driver