0👍
✅
The second one is the modern version of the first one. The second one only works with webpack >=2 .*
Unless you are using webpack 1, always use the second
DIfferences
They achieve the exact same thing, the only difference is that import()
returns a Promise.
Source:stackexchange.com