Skip to content

Latest commit

 

History

History

node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Parcel NodeJS Example

Parcel supports targeting the browser (default), node and electron.

In this example we use --target node in combination with the package.json property node.engines, to target Node 10 (Node 8 is the default target if no specified in node.engines - src).

To validate that the correct target is being used, look at the compiled output in dist/index.js and then change the node.engines value to >=6 and you will see the async/await calls Babel-ified to be valid Node 6.

Further Reading: