当我将 svg.js v3 与 svg.panzoom.js 结合使用时,会出现以下错误(导入svg.panzoom.js时):>
'extend' is not exported by node_modules/@svgdotjs/svg.js/dist/svg.min.js
https://rollupjs.org/guide/en#error-name-is-not-exported-by-module-
import { Svg, on, off, extend, Matrix, Box } from '@svgdotjs/svg.js'
是否有使用svg.js v3 +插件+汇总(webpack / parcel)的示例 我尝试将其转换为esm / cjs / iife / umd(所有相同的错误)
// this line is ok and is working
import SVG from '@svgdotjs/svg.js/src/svg.js';
// this line gives the error
import '@svgdotjs/svg.panzoom.js/src/svg.panzoom.js';