We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0248545 commit 0954403Copy full SHA for 0954403
dev-packages/rollup-utils/plugins/make-esm-plugin.mjs
@@ -15,9 +15,12 @@ export function makePackageNodeEsm() {
15
16
const packageJSON = JSON.parse(fs.readFileSync(packageJSONPath, 'utf-8'));
17
const sideEffects = packageJSON.sideEffects;
18
+ // For module federation we need to keep the version of the package
19
+ const version = packageJSON.version;
20
21
const newPackageJSON = {
22
type: 'module',
23
+ version,
24
sideEffects,
25
};
26
0 commit comments