refactor: add ProvidePlugin to webpack config