We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fbac76 commit 8669873Copy full SHA for 8669873
src/index.js
@@ -157,7 +157,8 @@ function wrapExportsInQuotes(exports, code) {
157
}
158
159
function separateExportsWithCommas(exports, code) {
160
- let codeLines = code.split("\n").map((line, lineIndex) => {
+ let codeLines = code.split("\n");
161
+ const fixedLines = codeLines.map((line, lineIndex) => {
162
let newLine = line;
163
exports.forEach((name, exportIndex) => {
164
if (line.startsWith(`"${name}"`)) {
@@ -172,7 +173,7 @@ function separateExportsWithCommas(exports, code) {
172
173
174
return newLine;
175
});
- return codeLines.join("\n");
176
+ return fixedLines.join("\n");
177
178
179
function indentAllLines(code) {
0 commit comments