Skip to content

Commit 5bf8b0f

Browse files
authored
Apply suggestion from @kemister85
1 parent fe5f3b1 commit 5bf8b0f

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

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

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -42,26 +42,7 @@ The following premium plugin updates were released alongside {productname} {rele
4242
=== Premium plugins now include ESM module support
4343
// #TINY-12888
4444

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.
45+
Premium plugins in {productname} {release-version} can now be consumed as native ES modules (`import`) in addition to CommonJS (`require`). This enhancement aligns premium plugins with the existing ESM capabilities already available in core plugins and applies to all distributed artifacts, including NPM packages and ZIP bundles. The update enables modern bundlers to automatically resolve the optimal module format, improving compatibility with ESM-focused toolchains and removing the need for CommonJS shims during integration.
6546

6647
[[improvements]]
6748
== Improvements

0 commit comments

Comments
 (0)