From e04599962f7bf106614862ee4b79ab5fe628d79a Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 25 Oct 2020 01:54:27 +0200 Subject: [PATCH] Revert change to not interfere with bundling --- src/serviceproviders.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/serviceproviders.js b/src/serviceproviders.js index 09ee81b..7f8d4de 100644 --- a/src/serviceproviders.js +++ b/src/serviceproviders.js @@ -21,10 +21,13 @@ const list = [ 'lobsters', ] -const data = {} -list.forEach((item, i) => { - data[item] = require(`./serviceproviders/${item}`) -}) +const data = { + dns: require('./serviceproviders/dns'), + xmpp: require('./serviceproviders/xmpp'), + twitter: require('./serviceproviders/twitter'), + hackernews: require('./serviceproviders/hackernews'), + lobsters: require('./serviceproviders/lobsters'), +} const match = (uri, opts) => { let matches = [], sp