bumbu/svg-pan-zoom

Library not loading with webpack and import

Open

#307 建立於 2018年8月1日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)JavaScript (1,585 star) (383 fork)batch import
feature requesthelp wanted

描述

Bug report

Expected behaviour

Expecting the library to load correctly

Actual behaviour

In a webpack environment (https://github.com/SimulatedGREG/electron-vue), the library doesn't load with either import or require

import: electron_2018-08-01_23-31-29

require: electron_2018-08-01_23-31-09

Steps to reproduce the behaviour

  1. Clone the repo (https://github.com/SimulatedGREG/electron-vue)
  2. Install library via npm
  3. Insert div#drawing element
  4. Add the following code
import svgPanZoom from 'svg-pan-zoom';
svgPanZoom('#drawing');

Configuration

  • svg-pan-zoom version: 3.5.3
  • Browser(s): chrome/electron
  • Operating system(s): W10

Thanks

貢獻者指南