Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Feb 2, 2023
1 parent 64913c8 commit 41052c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sites/kit.svelte.dev/src/lib/docs/server/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function replace_placeholders(content) {

let import_block = '';

if (module.exports.length > 0) {
if (module.exports.length > 0 && !module.name.startsWith('$internal')) {
// deduplication is necessary for now, because of `error()` overload
const exports = Array.from(new Set(module.exports.map((x) => x.name)));

Expand Down

0 comments on commit 41052c4

Please sign in to comment.