]> source.dussan.org Git - svg.js.git/commitdiff
Fix issue with Jest 1161/head
authorPhilippe Bernard <philippe.bernard@gmail.com>
Tue, 27 Oct 2020 08:31:18 +0000 (09:31 +0100)
committerPhilippe Bernard <philippe.bernard@gmail.com>
Tue, 27 Oct 2020 08:31:18 +0000 (09:31 +0100)
.config/rollup.config.js

index bcbab0c91ddf0ed74e934fe287d66581f014c9c0..42f95feb79fc11b98f71a9ef2165905caaf54d43 100644 (file)
@@ -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,