From 0e9ffec692c46dd904f082220ec7bdd0573255fb Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Mon, 14 Mar 2022 16:27:16 +0100 Subject: [PATCH] build: fix production flag Fix 1143 --- rollup.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index a4d46187..24c2b43e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -90,7 +90,7 @@ function createConfig(buildName, output, plugins = []) { '@vue/composition-api': 'vueCompositionApi', } - const isProductionBuild = /\.prod\.[cmj]s$/.test(output.file) + const isProductionBuild = /\.prod\.[cm]?js$/.test(output.file) const isGlobalBuild = buildName === 'global' const isRawESMBuild = buildName === 'browser' const isNodeBuild = buildName === 'cjs' -- 2.47.2