Skip to content

Commit

Permalink
fix(rollup-plugin): module is not defined in ES module scope (#5267)
Browse files Browse the repository at this point in the history
  • Loading branch information
cardoso authored Mar 6, 2025
1 parent 1f08a89 commit 51b9797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/@lwc/rollup-plugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,4 +391,6 @@ export default function lwc(pluginOptions: RollupLwcOptions = {}): Plugin {
}

// For backward compatibility with commonjs format
module.exports = lwc;
if (typeof module !== 'undefined') {
module.exports = lwc;
}

0 comments on commit 51b9797

Please sign in to comment.