Update cli/lib/asset-plugin.js

Co-authored-by: Ingvar Stepanyan <me@rreverser.com>
This commit is contained in:
Surma
2020-12-08 16:25:33 +00:00
committed by GitHub
parent f5be882b10
commit 33c3fd3278

View File

@@ -18,7 +18,7 @@ const defaultOpts = {
};
export default function assetPlugin(opts) {
opts = Object.assign({}, defaultOpts, opts);
opts = { ...defaultOpts, ...opts };
/** @type {Map<string, Buffer>} */
let assetIdToSourceBuffer;