Skip to content

Commit 5f22138

Browse files
committed
fix: include globals by default
1 parent 63f81fd commit 5f22138

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ class StaticPageGenerator {
4242
if (Array.isArray(entryFile))
4343
entryFile = entryFile.find((f) => f.endsWith('.js'));
4444

45-
const component = evalModule(compilation.assets[entryFile].source());
45+
const component = evalModule(
46+
compilation.assets[entryFile].source(),
47+
true,
48+
);
4649

4750
const src = new sources.RawSource(`<!DOCTYPE html>
4851
<html>

0 commit comments

Comments
 (0)