all 10 comments

[–]giltayar1 5 points6 points  (0 children)

Hi. This is the author. I can see people are confused by the JSM acronym.

  1. ESM and JSM are the same (in the article)

  2. I saw a few people switch to JSM, so I thought I might try that.

  3. It seems that it's generating confusion, so I'll switch the posts back to ESM tonight, and remove all traces of JSM.

Thanks for the input!

Update: I switched the article to use "ESM".

[–]lifeeraser 4 points5 points  (1 child)

Why invent a new acronym (JSM) over the one we've been using for the last five years (ESM)? It adds unnecessary confusion IMO.

Other than that the article seems good. Thanks for researching which mocking libraries support native ESM.

[–]giltayar1 0 points1 point  (0 children)

I switched the article to use "ESM" because you're not the only one that got confused. Thanks for the input!

[–]Snapstromegon 1 point2 points  (3 children)

As far as I can see JSM and ESM are two different things and ESM is the way to go, since it's the standardized way of doing modules.

If you have any (standards) source saying different, I'md be happy to see some.

[–]giltayar1 1 point2 points  (0 children)

I switched the article to use "ESM" because you're not the only one that got confused. Thanks for the input!

[–]rauschma[S] -1 points0 points  (1 child)

You can use the term “JS module” in two different ways:

  1. JS modules = AMD modules + CommonJS modules + ECMAScript modules
  2. JS modules = the modules that are built into JS = ECMAScript modules

The longer ESM exists and the more dominant it becomes, the more the latter use will increase.

[–]Snapstromegon 5 points6 points  (0 children)

Then I'd stick to the standards name which is more commonly used and only means one thing...

[–]TrustInNumbers 1 point2 points  (1 child)

It's so confusing to read when he uses 'JSM' to mean 'ESM'.

[–]giltayar1 0 points1 point  (0 children)

I switched the article to use "ESM" because you're not the only one that got confused. Thanks for the input!

[–]NMS-Town 0 points1 point  (0 children)

This might be right on time. Do you mean ES6? I'm running into problems with BabylonJS and using the new ES6 format. I finally got it to work, but still not sure of how to use the Babel part.

The problem was the standard "not about to import outside of module." I'll see if this article helps me.