Skip to content

Commit b81ab35

Browse files
codeserkwvds
authored andcommitted
* Moved bodyParser require to the top of the document
1 parent 54bf33d commit b81ab35

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const webpack = require('webpack')
44

55
const packageInfo = require('./package')
66

7+
const bodyParser = require('webpack-body-parser')
78
const chunkUpload = require('./src/utils/chunkUpload')
89

910
process.env.NODE_ENV = process.env.NODE_ENV || 'production'
@@ -187,8 +188,6 @@ module.exports = merge(baseConfig(), {
187188
res.json({ success: true })
188189
}
189190

190-
const bodyParser = require('webpack-body-parser')
191-
192191
// Chunk upload
193192
app.post('/upload/chunk', bodyParser.json(), chunkUpload)
194193

0 commit comments

Comments
 (0)