These types of routes is actually wanted packages and the node_segments listing throughout mother listing
Node’s component quality algorithm helps an atmosphere changeable titled NODE_Path with a listing of global lists to utilize whenever fixing transfer routes. You could pass it variety of directories in order to esbuild using an ecosystem adjustable for the CLI and using a selection on JS and you may Go APIs:
By using the new CLI and would like to citation numerous lists having fun with NODE_Roadway , you are going to need to separate all of them with : towards Unix and you can ; to your Screen. This is the same format one to Node itself spends.
#Aside extension
This enables you to customize the document expansion of your files one to esbuild stimulates in order to anything other than .js or .css . Specifically, the fresh new .mjs and .cjs file extensions features unique definition within the node (it suggest a document from inside the ESM and you will CommonJS format, respectively). This 1 is right if you are using esbuild to produce numerous files and you have to use the outdir option instead of your outfile solution. It can be utilized like this:
#Outbase
In the event the build contains multiple admission items from inside the independent listings, the latest directory structure would-be replicated on the productivity list cousin towards the outbase index. Such as for example, when the there’s two entry circumstances src/ pages/ home/ list.ts and you may src/ pages/ about/ list.ts while the outbase index is actually src , this new returns directory usually have users/ home/ list.js and you will pages/ about/ index.js . Here is how for action: