From 2ef40efe53f064520db29f07a20302a5b9ebf276 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 4 Apr 2023 09:08:16 -0300 Subject: [PATCH] revert minified --- packages/merchant-backend-ui/build.mjs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/packages/merchant-backend-ui/build.mjs b/packages/merchant-backend-ui/build.mjs index 5ca199e2f..fd2a52b9e 100755 --- a/packages/merchant-backend-ui/build.mjs +++ b/packages/merchant-backend-ui/build.mjs @@ -119,7 +119,15 @@ export const buildConfig = { entryPoints: [...entryPoints], bundle: true, outdir: "dist/pages", - minify: true, + /* + * Doing a minified version will replace templatestring to common strings + * This app is building mustache template with placeholders that will be replaced + * with string in runtime by the merchant-backend + * + * To the date, merchant backend is replacing with multiline string so + * doing minified version will brake at runtime + * */ + minify: false, loader: { ".svg": "file", ".png": "dataurl",