DEV Community

Discussion on: How to code like playing LEGO™

Collapse
 
michaeljota profile image
Michael De Abreu

The thing is, this would not work, either in Node, you would need to name it .jsm and run it in Node 8 LTS, nor in most browsers.

Node use another syntax to uses modules, and I think only Chrome supports import/export modules.

So, for now, you need to compile now. I think that's what Elarcis means.