Hi,
I have a problem using gsap through bower, compiled with webpack. My shim looks like this:
webpack: {
defaults: {
plugins: [
new webpack.ProvidePlugin({
...
'$': 'jquery',
'TweenLite': 'gsap'
...
})
],
externals: {
jquery: 'window.jQuery',
'TweenLite': 'gsap'
}
}
}
Everything works just fine when my project is not minified / compiled to build-version, where I end up getting this error message:
Uncaught TypeError: Cannot set property 'gsClass' of undefined
It works perfect when developing, even though it's run through an entry, main.js... Very confusing. Anyone had this problem before?