aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.js
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2021-02-03 14:29:24 +0000
committers-ol <s-ol@users.noreply.github.com>2021-02-03 14:32:43 +0000
commitbea3922acce31cedd3f871305194f780978b2a11 (patch)
treea47c0060f85250037b025074a92012e7d8f4b740 /src/index.js
parentfix name/time header styling (diff)
downloadfedidag-bea3922acce31cedd3f871305194f780978b2a11.tar.gz
fedidag-bea3922acce31cedd3f871305194f780978b2a11.zip
lazy-load graph.json
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.js b/src/index.js
index c90c3ab..fb48d15 100644
--- a/src/index.js
+++ b/src/index.js
@@ -56,9 +56,9 @@ const loadUser = async (id) => {
}
const loadData = async () => {
- const raw = await require('./graph.json');
+ const raw = await import('../lib/graph.json');
const data = await jsonld.frame(
- raw,
+ raw.default,
{
'@context': context,
type: 'Document',