bumbu/svg-pan-zoom

Library not loading with webpack and import

Open

#307 opened on Aug 1, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)JavaScript (1,585 stars) (383 forks)batch import
feature requesthelp wanted

Description

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

Contributor guide