NigelOToole / direction-reveal

Detects the direction a user enters or leaves an element allowing you to reveal or hide content based on this direction.
http://nigelotoole.github.io/direction-reveal/
MIT License
524 stars 39 forks source link

Cannot use it with webpack and uglifyJs #4

Closed gaspaonrocks closed 6 years ago

gaspaonrocks commented 6 years ago

Apparently webpack cannot bundle the dependency to your module because of some transpilation config...

It works if I copy it into my project though...

The closest issues about this is :

Any intention of looking into it ? It would be a shame to prevent people using webpack from using your work...

NigelOToole commented 6 years ago

I have pushed an update which I think resolves this issue. I have removed the module and js:next definitions form package.json because I mistakenly believed that these did not need to be transpiled. Can you check this works for you? As I am less familiar with Webpack any advice regarding compatibility with it would be appreciated.

gaspaonrocks commented 6 years ago

@NigelOToole

Hey ! Sorry for the late reply.

If Ihave time I'll look into it today, otherwise I'll do it tomorrow.