Rollup Version
2.77.0
Operating System (or Browser)
macOS
Node Version (if applicable)
16.13.0
Link To Reproduction
https://stackblitz.com/edit/rollup-template-83kwfj?file=rollup.config.js
Expected Behaviour
var lib = (function (exports) {
'use strict';
// run `node index.js` in the terminal
const a = 'a';
exports.a = a;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
return exports;
})({});
Actual Behaviour
const lib = (function (exports) {
'use strict';
// run `node index.js` in the terminal
const a = 'a';
exports.a = a;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
return exports;
})({});