From 21c284bf534ad6bf00dbb8440c4884e2cff81d95 Mon Sep 17 00:00:00 2001 From: Graham Barber Date: Sun, 24 May 2020 23:04:11 -0700 Subject: [PATCH] fix: reference default export from word lists --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 83ff4fd..f2b8cb9 100644 --- a/index.js +++ b/index.js @@ -3,7 +3,7 @@ function getRandomWord(wordCollection) { } export async function generateRandomName() { - const [adjectives, animals] = await Promise.all([ + const [{ default: adjectives }, { default: animals }] = await Promise.all([ import('./data/adjectives.js'), import('./data/animals.js') ]) -- 2.51.2