From 5aa7058943d0a380a4b03a808122bc7bca03fa17 Mon Sep 17 00:00:00 2001 From: lucille Date: Wed, 17 Jul 2024 16:20:25 +0300 Subject: [PATCH] c --- .../esm-ptracker-report-app/webpack.config.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 packages/esm-ptracker-report-app/webpack.config.js diff --git a/packages/esm-ptracker-report-app/webpack.config.js b/packages/esm-ptracker-report-app/webpack.config.js new file mode 100644 index 000000000..38b064d1a --- /dev/null +++ b/packages/esm-ptracker-report-app/webpack.config.js @@ -0,0 +1,15 @@ +const path = require('path'); +const config = (module.exports = require('openmrs/default-webpack-config')); +config.scriptRuleConfig.exclude = + path.sep == '/' + ? /(node_modules[^\/@openmrs\/esm\-patient\-common\-lib])/ + : /(node_modules[^\\@openmrs\/esm\-patient\-common\-lib])/; +config.overrides.resolve = { + extensions: ['.tsx', '.ts', '.jsx', '.js', '.scss'], + alias: { + '@openmrs/esm-framework': '@openmrs/esm-framework/src/internal', + '@ohri/openmrs-esm-ohri-commons-lib': path.resolve(__dirname, '../esm-commons-lib/src/index'), + '@openmrs/openmrs-form-engine-lib': '@openmrs/openmrs-form-engine-lib/src/index', + }, +}; +module.exports = config;