Skip to content

Commit 47df004

Browse files
committed
chore: code cleanup
1 parent bd58920 commit 47df004

File tree

5 files changed

+3
-21
lines changed

5 files changed

+3
-21
lines changed

npm-shrinkwrap.json

Lines changed: 0 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"@orama/orama": "^3.1.16",
4848
"@orama/react-components": "^0.8.1",
4949
"@rollup/plugin-virtual": "^3.0.2",
50-
"@shikijs/twoslash": "^3.14.0",
5150
"acorn": "^8.15.0",
5251
"commander": "^14.0.2",
5352
"dedent": "^1.7.0",

src/generators/web/index.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ export default {
5959
}
6060

6161
// Write the CSS file
62-
if (css) {
63-
safeWrite(join(output, 'styles.css'), css, 'utf-8');
64-
}
62+
safeWrite(join(output, 'styles.css'), css, 'utf-8');
6563
}
6664

6765
return results.map(({ html }) => ({ html, css }));

src/generators/web/ui/components/CodeBox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export default ({ className, children, ...props }) => {
4646
<BaseCodeBox
4747
onCopy={onCopy}
4848
language={getLanguageDisplayName(language)}
49-
{...props}
5049
className={className}
5150
buttonText="Copy to clipboard"
51+
{...props}
5252
>
5353
{children}
5454
</BaseCodeBox>

src/generators/web/utils/processing.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export async function processJSXEntries(
116116
// Note: main JS is inlined in HTML, so we don't return it separately
117117
return {
118118
results,
119-
css: clientBundle.css,
119+
css: clientBundle.css ?? '',
120120
jsChunks: chunksWithHashes,
121121
};
122122
}

0 commit comments

Comments
 (0)