100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Hotfix for CI/CD failure: updated externals API usage to Webpack version 5 (#2021)
Martin Peeters45f31de51459
diff --git a/ui/util/webpack.util.js b/ui/util/webpack.util.jsindex 5c34243f2..7d0dd18d0 100644--- a/ui/util/webpack.util.js+++ b/ui/util/webpack.util.js@@ -212,11 +212,11 @@ function getLibName(componentName) {return "OR" + componentName.charAt(0).toUpperCase() + componentName.substring(1);}-function ORExternals(context, request, callback) {- const match = request.match(/^@openremote\/([^\/]*)$/);+function ORExternals(context, callback) {+ const match = context.request.match(/^@openremote\/([^\/]*)$/);if (match) {let component = getLibName(match[1]);- console.log(request + " => " + component);+ console.log(context.request + " => " + component);return callback(null, "umd " + component);}callback();