import all from javascript code example
Example 1: alias import javascript
import {default as alias} from 'my-module';
Example 2: javascript import
import { module } from "./path"; // single module
import Module from "./path"; // default export
import Module, { module } from "./path"; // both
Example 3: import all from javascript
import * as module from "./module.js";