Add CommonJS compatibility#25
Conversation
Hi @astolcenburg, currently I can't include ThunderJS like: |
Hi @dersanli , yes, it will work thanks to the interoperability of ECMAScript modules with CommonJS: https://nodejs.org/api/esm.html#esm_interoperability_with_commonjs . But you need to use node.js >= 14 or node.js 12 with the --experimental-modules flag enabled. |
|
Hi @michielvandergeest |
+1 pls |
|
Validated with Lightning app, still works with the NodeJS related changes. Will push this through. |
|
Please rebase so we can merge. |
With this change, the module can be directly included by node.js applications that use the CommonJS module system.
b610834 to
282bf49
Compare
With this change, the module can be directly included
by node.js applications that use the CommonJS module system.