import name form "module-name";import *as name from"module-name";import { member } from"module-name";import { member as alias } from"module-name";import { member1, member2 } from"module-name";import { member1, member2 as alias2, [...] } from"module-name";import defaultMember, { member [, [...]] } from"module-name";import defaultMember,*as alias from"module-name";import defaultMember from"module-name";import"module-name";
exports
export { name1, name2, ..., nameN };export { variable1 as name1, variable2 as name2, ..., nameN };exportlet name1, name2, ..., nameN; // ๋๋ varexportlet name1 =..., name2 =..., ..., nameN; // ๋๋ var, constexport expression; export dafault expression;exportdefaultfunction (...) { ... } // ๋๋ class, function*exportdefaultfunctionname1(...) { ... } // ๋๋ class, function*export { name1 asdefault, ... };export*from ...;export { name1, name2, ..., nameN } from ...;export { import1 as name1, import2 as name2, ..., nameN } from ...;