es6 module에서 import export는 정확히 어떻게 동작하는걸까?
es6 module은 immutable binding을 내보낸다.(export)
CJS와 달리 ES6은 value와 binding 을 내보낸다.
How bindings work
ES module은 값이 아닌, live binding을 내보낸다. 그래서 초기에 import 된 후에, 값은 변경될 수 있다.
Last updated
Was this helpful?