Cannot import adapters correctly
UserGalileo opened this issue · comments
Hi,
I'm working in a TypeScript project with webpack.
I stumbled across this post [https://css-tricks.com/animating-layouts-with-the-flip-technique/] and decided to try your library. In your example, you use this import syntax:
import Flipping from 'flipping/adapters/web';
Unfortunately, this doesn't work (I'm using the latest version, 1.1.0). The only way I found for importing the Web Adapter is this, which feels unnatural:
import Flipping from 'flipping/lib/adapters/web';
This works, but the editor complains about that file not having a default export.
I think that with some minor changes to your project structure/configuration we should be able to use the syntax you used in that article, let me know if I'm doing something wrong :) Cheers!
I'd be happy to accept a PR. With Flipping V2, adapters are going away (because it'll get a lot simpler).
Cool, any info about V2? How will it be structured? Are adapters going to be a sort of "plugin"? Any idea about the release date? (if it's soon, we could skip the PR and wait for the V2)