when modules: false set by babel, then how can nodejs parse the import es6 module statement?

前端 未结 0 403
萌比男神i
萌比男神i 2020-12-31 09:18

As I know, nodejs can only understand require syntax, not the import/export statement.

So When I want to use es6 module statement in nodejs, I have to configure babel

相关标签:
回答
  • 消灭零回复
提交回复
热议问题