From bea3922acce31cedd3f871305194f780978b2a11 Mon Sep 17 00:00:00 2001 From: s-ol Date: Wed, 3 Feb 2021 15:29:24 +0100 Subject: lazy-load graph.json --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/index.js') 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', -- cgit v1.2.3