Skip to content

Commit

Permalink
fix(commonjs): add comma at the replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
chmelevskij committed Jan 10, 2021
1 parent 9b364cc commit 0afb9fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commonjs/src/transform-commonjs.js
Expand Up @@ -236,7 +236,7 @@ export default function transformCommonjs(
);
}
if (isShorthandProperty(parent)) {
magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire`);
magicString.appendRight(node.end, `: ${HELPERS_NAME}.commonjsRequire,`);
} else {
magicString.overwrite(node.start, node.end, `${HELPERS_NAME}.commonjsRequire`, {
storeName: true
Expand Down

0 comments on commit 0afb9fe

Please sign in to comment.