Skip to content

Commit

Permalink
feat: support single string entry (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
bencooper222 authored and gregberge committed Jun 17, 2019
1 parent 71fdc0e commit 494e689
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.js
Expand Up @@ -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)) {
Expand Down

0 comments on commit 494e689

Please sign in to comment.