Skip to content

Commit 037586b

Browse files
committed
only copy local imports
1 parent f288ba1 commit 037586b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export async function build(context: CommandContext = makeCommandContext()) {
4343
resolver
4444
});
4545
files.push(...render.files.map((f) => join(dirname(sourceFile), f.name)));
46-
files.push(...render.imports.map((f) => join(dirname(sourceFile), f.name)));
46+
files.push(...render.imports.filter((i) => i.type === "local").map((i) => join(dirname(sourceFile), i.name)));
4747
await prepareOutput(outputPath);
4848
await writeFile(outputPath, render.html);
4949
}

0 commit comments

Comments
 (0)