Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

To load an ES module, set "type": "module" in the package.json or use the .mjs extension.

// Add the "type": "module" line in your package.json file.
{
  "type": "module"
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #To #load #ES #set
ADD COMMENT
Topic
Name
1+7 =