diff --git a/packages/pluggable-widgets-tools/CHANGELOG.md b/packages/pluggable-widgets-tools/CHANGELOG.md index 9d25aa9b..d71dd55a 100644 --- a/packages/pluggable-widgets-tools/CHANGELOG.md +++ b/packages/pluggable-widgets-tools/CHANGELOG.md @@ -14,6 +14,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - We increased the minimum node version to 22. +### Fixed + +- We fixed an issue where images imported in widgets were not displayed correctly in the React client when deployed in the cloud. + ## [11.12.0] - 2026-06-30 ### Changed diff --git a/packages/pluggable-widgets-tools/configs/rollup.config.mjs b/packages/pluggable-widgets-tools/configs/rollup.config.mjs index 346d6ee9..d267472c 100644 --- a/packages/pluggable-widgets-tools/configs/rollup.config.mjs +++ b/packages/pluggable-widgets-tools/configs/rollup.config.mjs @@ -105,7 +105,11 @@ export default async args => { url({ include: imagesAndFonts, limit: 0, - publicPath: `${join("widgets", outAssetsDir)}/`, // Prefix for the actual import, relative to Mendix web server root + // Prefix for the actual import, relative to Mendix web server root + // dojo uses: "widgets//assets/123abc.png" + // react uses: "dist//assets/123abc.png" + publicPath: + outputFormat === "es" ? `${join("dist", outAssetsDir)}/` : `${join("widgets", outAssetsDir)}/`, destDir: absoluteOutAssetsDir }), postCssPlugin(outputFormat, production),