From 0a6b483d4e2386519fce159c5e38e33291fa9a6f Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Wed, 11 Dec 2024 10:41:12 +0100 Subject: [PATCH] chore: dynamically specify the exportConditions in the Rollup config --- rollup.config.vanilla-library.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup.config.vanilla-library.js b/rollup.config.vanilla-library.js index 72719120..4deb14d5 100644 --- a/rollup.config.vanilla-library.js +++ b/rollup.config.vanilla-library.js @@ -43,7 +43,7 @@ export default { resolve({ browser: true, - exportConditions: ['svelte', 'module', 'production', 'browser'] + exportConditions: ['svelte', production ? 'production' : 'development'] }), commonjs(), json(),