Hi,
I know webpack has been talked about extensively here but all the solutions I have found involve the same publicly available modules.
I am doing something like this (I use vbuild so the syntax is different): https://github.com/OSUblake/gsap-webpack/blob/master/gsap-webpack/gsap-webpack/webpack.config.js
...where I have an alias for Tweenlite the same way as above.
When I go to import private (club membership) modules I can sucessfully import CustomEase from easing as well as
You can install all the special plugins through npm...
https://stackoverflow.com/questions/10386310/how-to-install-a-private-npm-module-without-my-own-registry
It can be as simple as a local folder.
Create a package.json for it.
{
"name": "gsap",
"version": "1.19.1",
"main": "./TweenMax.js"
}
Now you can import like this with Babel.
import { TweenMax } from 'gsap'
import CustomEase from 'gsap/CustomEase'
With TypeScript