diff options
author | ThibG <thib@sitedethib.com> | 2019-03-16 22:59:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-16 22:59:47 +0100 |
commit | 6e3a4bcbc70bb33bfb0746cf3b2186ee9f4e6515 (patch) | |
tree | 239e6c3779ce64ee9833c3eec761ea158c2813b3 /config/webpack | |
parent | 6af2300454c960ef83f7b7d31e9b829e0d5a8e38 (diff) | |
parent | 8ea344fed40ae1dccf5e1b6ecfd0014128c10fb7 (diff) |
Merge pull request #962 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config/webpack')
-rw-r--r-- | config/webpack/rules/node_modules.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/config/webpack/rules/node_modules.js b/config/webpack/rules/node_modules.js index 7ed05504b..5debc1b5d 100644 --- a/config/webpack/rules/node_modules.js +++ b/config/webpack/rules/node_modules.js @@ -11,7 +11,16 @@ module.exports = { options: { babelrc: false, plugins: [ - 'transform-react-remove-prop-types', + [ + 'transform-react-remove-prop-types', + { + mode: 'remove', + removeImport: true, + additionalLibraries: [ + '../../utils/shared-props', // emoji-mart + ], + }, + ], ], cacheDirectory: join(settings.cache_path, 'babel-loader-node-modules'), cacheCompression: env.NODE_ENV === 'production', |