Use loadash instead of object assign for old node versions
This commit is contained in:
parent
c0b730f25d
commit
765002458b
|
|
@ -6,6 +6,7 @@
|
|||
*/
|
||||
'use strict';
|
||||
var Promise = require('bluebird');
|
||||
var _ = require('lodash');
|
||||
var path = require('path');
|
||||
var NodeTemplatePlugin = require('webpack/lib/node/NodeTemplatePlugin');
|
||||
var NodeTargetPlugin = require('webpack/lib/node/NodeTargetPlugin');
|
||||
|
|
@ -37,7 +38,7 @@ module.exports.compileTemplate = function compileTemplate (template, context, ou
|
|||
publicPath: compilation.outputOptions.publicPath
|
||||
};
|
||||
// Store the result of the parent compilation before we start the child compilation
|
||||
var assetsBeforeCompilation = Object.assign({}, compilation.assets[outputOptions.filename]);
|
||||
var assetsBeforeCompilation = _.assign({}, compilation.assets[outputOptions.filename]);
|
||||
// Create an additional child compiler which takes the template
|
||||
// and turns it into an Node.JS html factory.
|
||||
// This allows us to use loaders during the compilation
|
||||
|
|
|
|||
Loading…
Reference in New Issue