WebPack to treat your import as external code example Example: import jquery webpack import $ from 'jquery'; $('.my-element').animate(/* ... */);