[javascript] ES6 모듈에서 전체 모듈을 가져오는 방법은 무엇인가요?

예를 들어, 다음과 같이 사용할 수 있습니다:

// module.js
export const func1 = () => { /* 함수1 구현 */ };
export const func2 = () => { /* 함수2 구현 */ };
export const variable1 = 123;
// main.js
import * as myModule from './module';

myModule.func1(); // 모듈 내의 func1 함수 호출
console.log(myModule.variable1); // 모듈 내의 변수에 접근