Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow this lib to be imported #9

Open
ShashankaNataraj opened this issue Feb 19, 2017 · 2 comments
Open

Allow this lib to be imported #9

ShashankaNataraj opened this issue Feb 19, 2017 · 2 comments

Comments

@ShashankaNataraj
Copy link

ShashankaNataraj commented Feb 19, 2017

Currently this library binds directly to the window object. If this library can be imported with

import Swiped from 'swiped'

That'd allow selective import with webpack

@jMalojlo
Copy link

Yup, using import Swiped from 'swiped', I'm getting
__WEBPACK_IMPORTED_MODULE_3_swiped_dist_swiped_js___default.a.init is not a function when I try to initialize.

Not being able to use this tool as a module is a killer for me, sadly

@Saeed-RM
Copy link

are we going to have any updates to solve this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants