🈯import

🚧 under construction

(directive or declaration)

4 forms of import declarations:

import Tools from './module.js';         // import default
import { f, g } from './module.js'; 
import { f as g } from './module.js';    // rename

importing a CommonJS module from npm may cause

SyntaxErrorNamed export 'xxx' not found

Last updated