دسته: oasis active Zaloguj si?

The fresh new minification algorithm from inside the esbuild doesn’t yet , would complex code optimizations

The fresh new minification algorithm from inside the esbuild doesn’t yet , would complex code optimizations

Particularly, next password optimizations try possible for JavaScript code however they are perhaps not accomplished by esbuild (maybe not an exhaustive number):

  • Dead-password removal inside function regulators
  • Mode inlining
  • Cross-declaration ongoing propagation
  • Target shape acting
  • Allowance sinking
  • Strategy devirtualization
  • A symbol delivery
  • JSX expression hoisting
  • TypeScript enum detection and you may inlining

In case the password uses habits which need a number of these forms of password optimization to-be lightweight, or you seek the optimal JavaScript minification formula available instance, you should know playing with most other units. Some examples out of tools one to pertain some of these advanced code https://datingmentor.org/pl/oasis-recenzja/ optimizations are Terser and Yahoo Closure Compiler.

#Outdir

This one set the brand new efficiency index on build operation. Such as, this demand will generate a list named out :

Brand new production list is generated when it cannot currently exist, nevertheless are not removed if this already contains specific records. People produced documents often silently overwrite existing data with the same name. You need to obvious the fresh new production index yourself just before powering esbuild in the event the you want the latest output index to simply contain files on the newest manage away from esbuild.

When your generate consists of several entryway situations for the independent listing, the fresh new list construction might possibly be duplicated for the efficiency index undertaking regarding the reasonable prominent ancestor index certainly one of every type in entry way pathways. Including, if the there are 2 entryway points src/ home/ directory.ts and you may src/ about/ directory.ts , the newest productivity index have a tendency to consist of family/ index.js and on/ index.js . ادامه خواندن

سوالی دارید؟
مکالمه را شروع کنید
سلام! چگونه می توانیم با پشتیبانی تیم نی نی شینا کمکتون کنیم؟
لطفا برای دریافت پاسخ پشتیبان صبر کنید...