Skip to content
This repository was archived by the owner on Oct 21, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions createServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ function createCompiler (inConfig) {
const config = Object.assign({ }, inConfig)

const OccurrenceOrderPlugin = webpack.optimize.OccurrenceOrderPlugin
const NoErrorsPlugin = webpack.NoErrorsPlugin
const NoEmitOnErrorsPlugin = webpack.NoEmitOnErrorsPlugin
const plugins = (config.plugins || [ ]).slice()

ensurePlugin(OccurrenceOrderPlugin)
ensurePlugin(NoErrorsPlugin)
ensurePlugin(NoEmitOnErrorsPlugin)

if (typeof config.entry !== 'string') {
throw new Error('config.entry should be a string.')
Expand Down