Implicit imports in Webpack using ProvidePlugin
Do you find yourself writing this:
import React from ‘react'
in every single one of your gosh-darned files?
Remember how you used the `ProvidePlugin` to replace `Promise` globally in your app?
We can use that same approach for stuff we’re using everywhere else too.
React : ‘react’,
Promise : ‘bluebird’,
cx : 'classnames',
get : 'lodash.get'
Now, I understand I use a few examples here, but I wouldn’t get too crazy.