diff options
author | Philippe Bernard <philippe.bernard@gmail.com> | 2020-10-27 09:31:18 +0100 |
---|---|---|
committer | Philippe Bernard <philippe.bernard@gmail.com> | 2020-10-27 09:31:18 +0100 |
commit | 04bbe3607beaf4485ddbda273edf48c03fd3fbe9 (patch) | |
tree | feb1c8509c6b6869872fb2bab0b57ee04cd96029 /.config/rollup.config.js | |
parent | d8ba15323a1336292a8faf5294c478bc1a69b646 (diff) | |
download | svg.js-04bbe3607beaf4485ddbda273edf48c03fd3fbe9.tar.gz svg.js-04bbe3607beaf4485ddbda273edf48c03fd3fbe9.zip |
Fix issue with Jest
Diffstat (limited to '.config/rollup.config.js')
-rw-r--r-- | .config/rollup.config.js | 3 |
1 files changed, 2 insertions, 1 deletions
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, |