diff --git a/dev-packages/rollup-utils/plugins/make-esm-plugin.mjs b/dev-packages/rollup-utils/plugins/make-esm-plugin.mjs index 04dd68beaa1c..ad18856c011a 100644 --- a/dev-packages/rollup-utils/plugins/make-esm-plugin.mjs +++ b/dev-packages/rollup-utils/plugins/make-esm-plugin.mjs @@ -15,9 +15,12 @@ export function makePackageNodeEsm() { const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8')); const sideEffects = packageJSON.sideEffects; + // For module federation we need to keep the version of the package + const version = packageJSON.version; const newPackageJSON = { type: 'module', + version, sideEffects, };