[v18.x backport] esm: add --import flag
#49539
+350
−66
Closed
--import flag
#49539