Replies: 3 comments
-
@vmutafov converted to discussion, to expose the topic and also receive feedback from the community. |
Beta Was this translation helpful? Give feedback.
-
If possible, I think it would be great to support both and to differentiate between them, based on the file extension, either |
Beta Was this translation helpful? Give feedback.
-
A reference from V8 documentation on why If we can "solve" with it also the irritating issue for unrecognisable client-side and server-side script files in a single project, will be very beneficial long-term as well. |
Beta Was this translation helpful? Give feedback.
-
We should decide if Dirigible users would be allowed to mix CommonJS and ES6 modules. Although it seems great at a first glance to support both specifications in a single project, there may be complications while implementing this.
If it is not hard for implementing, it would be good to support both specifications as it would allow users to easily migrate their applications to the ES6 modules syntax. We can see how NodeJS approached this and if they support both specifications to be used in a single project. Maybe we can differentiate the two specs by the file extension -
.js
for CommonJS and.mjs
for ES6 moduled JS files.Progress to be tracked in: #1147
Related Discussion: Eclipse Dirigible 6.0
Beta Was this translation helpful? Give feedback.
All reactions