Strictly speaking, there is no such thing as qualified / unskilled import in JavaScrpit. These terms were used in the study of ES6 by Dr. Axel Rauschmeier in the context of cyclic dependencies and roughly mean:
Unskilled import (directly import part of the module):
Commonjs
var foo = require('a').foo
ES2015
import {foo} from 'a'
Qualified import (import of the entire module as a namespace):
Commonjs
var a = require('a') function bar() { a.foo()
ES2015
import * as a from 'a' export function bar() { a.foo()
In ES2015, default imports can also be qualified imports (although some people disagree) if they serve as a namespace:
export default { fn1, fn2 }
* with cyclic dependencies, you cannot access the import in the module body:
import {foo} from 'a'
source share