Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

activate es6 module node package.json

// To use ES6 module import in node 
// --> import myDependency from 'myDependency' instead of
// --> const myDependency = require('myDependency')

Add "type": "module" in the nearest package.json.
 
PREVIOUS NEXT
Tagged: #activate #module #node
ADD COMMENT
Topic
Name
6+3 =