From 1989fdfb8ce806cd5ea3979fd7b5c6641edb96fc Mon Sep 17 00:00:00 2001 From: Joel Chen Date: Wed, 28 Oct 2020 23:35:37 -0700 Subject: [PATCH] [fix] don't setup DLL if assets is empty --- packages/xarc-webpack/src/partials/dll-load.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/xarc-webpack/src/partials/dll-load.ts b/packages/xarc-webpack/src/partials/dll-load.ts index 00d5fd406..278330365 100644 --- a/packages/xarc-webpack/src/partials/dll-load.ts +++ b/packages/xarc-webpack/src/partials/dll-load.ts @@ -20,10 +20,16 @@ import * as webpack from "webpack"; const DonePlugin = require("../plugins/done-plugin"); const dllUtil = require("../util/dll-util"); +const _ = require("lodash"); module.exports = function() { const dll = dllUtil.loadAssets(); + // no DLL + if (_.isEmpty(dll.assets)) { + return {}; + } + // dev mode? if (process.env.WEBPACK_DEV === "true") { dllUtil.updateDllAssetsForDev(dll.assets);