From 04bbe3607beaf4485ddbda273edf48c03fd3fbe9 Mon Sep 17 00:00:00 2001 From: Philippe Bernard Date: Tue, 27 Oct 2020 09:31:18 +0100 Subject: Fix issue with Jest --- .config/rollup.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to '.config') diff --git a/.config/rollup.config.js b/.config/rollup.config.js index bcbab0c..42f95fe 100644 --- a/.config/rollup.config.js +++ b/.config/rollup.config.js @@ -96,7 +96,8 @@ const config = (node, min, esm = false) => ({ : node ? './dist/svg.node.js' : min ? './dist/svg.min.js' : './dist/svg.js', - format: esm ? 'esm' : node ? 'cjs' : 'iife', + // See https://stackoverflow.com/questions/54489234/trouble-loading-svgdotjs-svg-js-3-0-11-in-typescript-test-code-managed-by-j + format: esm ? 'esm' : node ? 'cjs' : 'umd', name: 'SVG', sourcemap: true, banner: headerLong, -- cgit v1.2.3