Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion modules/ROOT/pages/8.3.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,29 @@ The following premium plugin updates were released alongside {productname} {rele
// // CCFR here.

// For information on the **<Premium plugin name 1>** plugin, see: xref:<plugincode>.adoc[<Premium plugin name 1>].

=== Premium plugins now include ESM module support
// #TINY-12888

All premium plugins now include an `+index.mjs+` file in their dist folders alongside the existing `+index.js+` file. The `+index.mjs+` file uses ES module (`+import+`) syntax instead of CommonJS (`+require+`) syntax, allowing bundlers and integrators to use native ESM without requiring a CommonJS compatibility layer.

The `+package.json+` file in each premium plugin's dist folder has been updated to include proper module exports configuration:
Comment thread
kemister85 marked this conversation as resolved.
Outdated

[source,json]
----
{
"main": "index.js",
"module": "index.mjs",
"exports": {
".": {
"import": "./index.mjs",
"require": "./index.js"
},
"./package.json": "./package.json"
}
}
----

This enables modern bundlers to automatically select the appropriate module format based on the project's configuration, improving compatibility and reducing the need for additional build tooling.
Comment thread
kemister85 marked this conversation as resolved.
Outdated

[[improvements]]
== Improvements
Expand Down
Loading