Skip to content

Commit

Permalink
fix: include globals by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Feb 25, 2021
1 parent 63f81fd commit 5f22138
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ class StaticPageGenerator {
if (Array.isArray(entryFile))
entryFile = entryFile.find((f) => f.endsWith('.js'));

const component = evalModule(compilation.assets[entryFile].source());
const component = evalModule(
compilation.assets[entryFile].source(),
true,
);

const src = new sources.RawSource(`<!DOCTYPE html>
<html>
Expand Down

0 comments on commit 5f22138

Please sign in to comment.