We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c364515 commit e18375cCopy full SHA for e18375c
JavaScript/6-cjs.js
@@ -0,0 +1,8 @@
1
+'use strict';
2
+
3
+// But what a bullshit?
4
+// We can just use {} and module system
5
6
+const singleton = {};
7
8
+module.exports = { singleton };
JavaScript/6-js.js
JavaScript/7-esm.mjs
@@ -0,0 +1,5 @@
+class Entity {}
+const singleton = new Entity();
+export { singleton };
0 commit comments