I am porting legacy code to Webpack and I have the following...
Dependency loader in TS
import "baconjs/dist/Bacon.js"
Module in Coffee
@stream = new Bacon.Bus()
When I try to run I get
zone.js?fad3:269 Uncaught ReferenceError: Bacon is not defined
I tried adding this to my webpack config....
new webpack.ProvidePlugin({
...
Bacon: "Bacon"
}),
But it did not help.
Module not found: Error: Cannot resolve module 'Bacon' in ...
What can I do to solve this?