Volume? Can there be big guys who engage in open source packaging tools?

Time:2022-6-1

Recently,Parcel2releasebeta3Version.

The biggest update of this version is to replace theJSCompiler, fromBabelReplace withSWC, which makes the overall compilation speed 10x times faster than before.

SWCYesRustWrittenJSCompiler, the goal is to replaceBabel。 His author was born in 1997강동윤, he wroteswcI am a sophomore.

Volume? Can there be big guys who engage in open source packaging tools?

Parcel tired by speed

In order to work with packing tools, big brotherWebpackDifferentiated competition,ParceltakeZero configurationAs his selling point (benchmarkingWebpackCumbersome configuration)

Volume? Can there be big guys who engage in open source packaging tools?

Among them, advancedESThe syntax will be based on thebrowserslistTarget version degraded to correspondingES5Syntax.

Nonstandard syntax, similarJSXTS, development environment features, similarReact Fast RefreshThey are all out of the box.

The realization of all this is based onBabelofJS compilerUp.

andJScompareRustThe speed disadvantage at the language level isBabelNo amount of optimization can make up for it.

Thus, there is the replacement mentioned at the beginningJScompiler.

ParcelThe team said,SWCthanBabel20x faster

It is worth pondering that in providingbenchmarkWhen showing performance,ParcelUsedesbuildofbenchmark

esbuildUse 10 copiesthreeJSCompare the packaging speed of different packaging tools under the default configuration asbenchmark

Volume? Can there be big guys who engage in open source packaging tools?

Volume of speed

esbuildIs aGoWrittenJSPackaging tool, open source in january2020. His author isFigmaofCTO Evan Wallace

Volume? Can there be big guys who engage in open source packaging tools?

Once open source, there are no fancy new functions, and the hard and hard compilation speed comes up.

Volume? Can there be big guys who engage in open source packaging tools?

Outstanding achievements:

Volume? Can there be big guys who engage in open source packaging tools?

Can seeParecel2Third from bottom.

And big brotherWebpack5The reason why there is no reciprocal first is that the reciprocal first isWebpack4

Volume? Can there be big guys who engage in open source packaging tools?

EvanLater updatedbenchmark

Volume? Can there be big guys who engage in open source packaging tools?

althoughParcelIts advantages are: minimalism and zero configuration. But being pulled out like this is faster than the speed, the result is still so tragic.

PresumablyParcelTeam members are extremely oppressed.

So, brothers, let’s put aside other things first. Let’s roll up the compilation speed together!

After several months of development, we finally have thebeta3。 And I have to use youesbuildofbenchmarkRun again and find the court!

Volume? Can there be big guys who engage in open source packaging tools?

Dimension reduction attack of JS packaging tool

In fact, inWebpackToday, which has been developed for many years, can highlightWebpackEncirclement and packaging tools that occupy a place are all following the line of differentiated competition.

Volume? Can there be big guys who engage in open source packaging tools?

stayGoogleengineerSurmaPackaging tool evaluation website developed with otherstooling.reportYou can see:

WebpackIt supports the most comprehensive functions. Other mainstream packaging tools have their own emphasis.

Volume? Can there be big guys who engage in open source packaging tools?

The direction of the script should have been:

WebpackKeep going heHexagon WarriorRoute of

Volume? Can there be big guys who engage in open source packaging tools?

Other packaging tools are well installed and follow the differentiated route.

However,esbuildThe sudden rise of has caused a dimension reduction blow to these tools.

Compilation speedIt is really just needed at the time of development.

Volume? Can there be big guys who engage in open source packaging tools?

ParcelIt is not the first and by no means the last tool for change.

Smart vite

Some people embrace change, others are forced to accept it.

ViteThen say: VolumebundleSpeed? Then I will adoptNo-BundleThe plan is not up to you.

Volume? Can there be big guys who engage in open source packaging tools?

Compilation speedIs it important to you? Welcome to leave your discussion.