Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
fix(load-styles): add semicolon after module.exports
Browse files Browse the repository at this point in the history
  • Loading branch information
zacowan committed Apr 23, 2024
1 parent 14b73a4 commit d632ac0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const css = \` ._root_w8zvp_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_w8zvp_1', 'second': '_second_w8zvp_9' }
module.exports = { 'root': '_root_w8zvp_1', 'second': '_second_w8zvp_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -225,7 +225,7 @@ const css = \` ._root_w8zvp_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_w8zvp_1', 'second': '_second_w8zvp_9' }
module.exports = { 'root': '_root_w8zvp_1', 'second': '_second_w8zvp_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -274,7 +274,7 @@ body > p {
document.head.appendChild(el);
}
})();
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -319,7 +319,7 @@ body > p {
document.head.appendChild(el);
}
})();
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -360,7 +360,7 @@ body > p {
font-color: black;
}\`;
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -398,7 +398,7 @@ body > p {
font-color: black;
}\`;
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -448,7 +448,7 @@ const css = \`._test-class_1o1cd_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': '_test-class_1o1cd_1', 'nested-class': '_nested-class_1o1cd_5' }
module.exports = { 'test-class': '_test-class_1o1cd_1', 'nested-class': '_nested-class_1o1cd_5' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -489,7 +489,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': '_test-class_ykkej_2', 'nested-class': '_nested-class_ykkej_5' }
module.exports = { 'test-class': '_test-class_ykkej_2', 'nested-class': '_nested-class_ykkej_5' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -531,7 +531,7 @@ const css = \`._test-class_1o1cd_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': '_test-class_1o1cd_1', 'nested-class': '_nested-class_1o1cd_5' }
module.exports = { 'test-class': '_test-class_1o1cd_1', 'nested-class': '_nested-class_1o1cd_5' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -572,7 +572,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': '_test-class_ykkej_2', 'nested-class': '_nested-class_ykkej_5' }
module.exports = { 'test-class': '_test-class_ykkej_2', 'nested-class': '_nested-class_ykkej_5' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -614,7 +614,7 @@ const css = \`.test-class {
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': 'test-class', 'nested-class': 'nested-class' }
module.exports = { 'test-class': 'test-class', 'nested-class': 'nested-class' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -655,7 +655,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': 'test-class', 'nested-class': 'nested-class' }
module.exports = { 'test-class': 'test-class', 'nested-class': 'nested-class' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -696,7 +696,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'testClass': '_testClass_nd9j1_2' }
module.exports = { 'testClass': '_testClass_nd9j1_2' };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -734,7 +734,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'test-class': '_test-class_jogu8_2' }
module.exports = { 'test-class': '_test-class_jogu8_2' };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -772,7 +772,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'TestClass': '_TestClass_ndabk_2' }
module.exports = { 'TestClass': '_TestClass_ndabk_2' };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -822,7 +822,7 @@ const css = \`
document.head.appendChild(el);
}
})();
module.exports = { 'testClass': '_testClass_1mj1y_2', 'test-class': '_test-class_1mj1y_5', 'TestClass': '_TestClass_1mj1y_8' }
module.exports = { 'testClass': '_testClass_1mj1y_2', 'test-class': '_test-class_1mj1y_5', 'TestClass': '_TestClass_1mj1y_8' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -896,7 +896,7 @@ const css = \` ._root_18xtd_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_18xtd_1', 'somethingElse': '_somethingElse_18xtd_5', 'second': '_second_18xtd_9' }
module.exports = { 'root': '_root_18xtd_1', 'somethingElse': '_somethingElse_18xtd_5', 'second': '_second_18xtd_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -937,7 +937,7 @@ const css = \` ._root_18xtd_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_18xtd_1', 'second': '_second_18xtd_9' }
module.exports = { 'root': '_root_18xtd_1', 'second': '_second_18xtd_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -978,7 +978,7 @@ const css = \` ._root_18xtd_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_18xtd_1', 'second': '_second_18xtd_9' }
module.exports = { 'root': '_root_18xtd_1', 'second': '_second_18xtd_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -1059,7 +1059,7 @@ const css = \` ._root_1vf0l_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_1vf0l_1', 'second': '_second_1vf0l_9' }
module.exports = { 'root': '_root_1vf0l_1', 'second': '_second_1vf0l_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -1135,7 +1135,7 @@ const css = \` ._root_1vf0l_1 {
document.head.appendChild(el);
}
})();
module.exports = { 'root': '_root_1vf0l_1', 'second': '_second_1vf0l_9' }
module.exports = { 'root': '_root_1vf0l_1', 'second': '_second_1vf0l_9' };
module['css'] = css;
module['digest'] = digest;"
`
Expand Down Expand Up @@ -1184,7 +1184,7 @@ body > p {
document.head.appendChild(el);
}
})();
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down Expand Up @@ -1229,7 +1229,7 @@ body > p {
document.head.appendChild(el);
}
})();
module.exports = { }
module.exports = { };
module['css'] = css;
module['digest'] = digest;"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/one-app-dev-bundler/esbuild/utils/load-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const getGenerateScopedNameOption = (path) => {
const generateCssModuleExports = (cssModulesJSON) => {
const entries = Object.entries(cssModulesJSON);

return `module.exports = { ${entries.map(([exportName, className]) => `'${exportName}': '${className}'`).join(', ')} }`;
return `module.exports = { ${entries.map(([exportName, className]) => `'${exportName}': '${className}'`).join(', ')} };`;
};

const generateJsContent = ({
Expand Down

0 comments on commit d632ac0

Please sign in to comment.