Drop providePlugin usage for react

This commit is contained in:
SleepWalker 2019-11-09 13:15:11 +02:00
parent 93e165667e
commit c1c9d46fda

View File

@ -136,11 +136,6 @@ const webpackConfig = {
changeFreq: 'weekly'
}
),
// TODO: remove this in future. We should explicitly import:
// `import React from 'react'` in each file, where it is required
new webpack.ProvidePlugin({
React: 'react'
}),
// restrict webpack import context, to create chunks only for supported locales
// @see services/i18n.js
new webpack.ContextReplacementPlugin(