Skip to content

Commit fe5f3b1

Browse files
committed
DOC-3224: Premium plugins now include ESM module support.
1 parent 7e98a33 commit fe5f3b1

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

modules/ROOT/pages/8.3.0-release-notes.adoc

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,29 @@ The following premium plugin updates were released alongside {productname} {rele
3939
// // CCFR here.
4040

4141
// For information on the **<Premium plugin name 1>** plugin, see: xref:<plugincode>.adoc[<Premium plugin name 1>].
42-
42+
=== Premium plugins now include ESM module support
43+
// #TINY-12888
44+
45+
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.
46+
47+
The `+package.json+` file in each premium plugin's dist folder has been updated to include proper module exports configuration:
48+
49+
[source,json]
50+
----
51+
{
52+
"main": "index.js",
53+
"module": "index.mjs",
54+
"exports": {
55+
".": {
56+
"import": "./index.mjs",
57+
"require": "./index.js"
58+
},
59+
"./package.json": "./package.json"
60+
}
61+
}
62+
----
63+
64+
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.
4365

4466
[[improvements]]
4567
== Improvements

0 commit comments

Comments
 (0)