From 494e689c5b02bfd7a0b07322d77c741ca88ca201 Mon Sep 17 00:00:00 2001 From: Benjamin Cooper Date: Mon, 17 Jun 2019 02:41:49 -0700 Subject: [PATCH] feat: support single string entry (#43) --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 4b3c6f8..fae71c7 100644 --- a/src/index.js +++ b/src/index.js @@ -37,10 +37,7 @@ class ErrorOverlayPlugin { function adjustEntry(entry, enableDevServer, sockOptions) { if (typeof entry === 'string') { - throw new Error( - `We currently do not inject our entry code into single-file anonymous entries. -Please use a multi-main (array) or object-form \`entry\` setting for now.`, - ) + entry = [entry]; // for anonymous single entry points } if (Array.isArray(entry)) {