From 551e86278e92a617b28cdd11593ed9a76d980db5 Mon Sep 17 00:00:00 2001 From: Craig Beck Date: Thu, 22 Jun 2023 15:50:54 -0700 Subject: [PATCH] Include derby-webpack browser shim automatically for every entry point (#23) --- createConfig.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/createConfig.js b/createConfig.js index f03bf35..f42607d 100644 --- a/createConfig.js +++ b/createConfig.js @@ -19,8 +19,12 @@ module.exports = function createConfig(apps, rootDir, opts = {}) { ...acc, [name]: options.hotModuleReplacement ? [ 'webpack-hot-middleware/client', + '@derbyjs/derby-webpack/lib/browser', path, - ] : [ path ], + ] : [ + '@derbyjs/derby-webpack/lib/browser', + path, + ], }), {}), node: { __dirname: true,