aboutsummaryrefslogtreecommitdiff
path: root/modern/craco.config.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-03-25 00:50:37 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-03-25 00:50:37 -0700
commit6bee8cb1944677f8c3ede0a0bf799c92b86e08a0 (patch)
tree23ce61c628eac7cb5cb97eb52bc920841a94d4e4 /modern/craco.config.js
parentb10607f96ad72f5f971fbd867eeeeb86380f79cb (diff)
downloadetbsa-traccar-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.tar.gz
etbsa-traccar-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.tar.bz2
etbsa-traccar-web-6bee8cb1944677f8c3ede0a0bf799c92b86e08a0.zip
Simple localization support
Diffstat (limited to 'modern/craco.config.js')
-rw-r--r--modern/craco.config.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modern/craco.config.js b/modern/craco.config.js
new file mode 100644
index 0000000..3e5d98e
--- /dev/null
+++ b/modern/craco.config.js
@@ -0,0 +1,12 @@
+module.exports = {
+ webpack: {
+ configure: webpackConfig => {
+ const scopePluginIndex = webpackConfig.resolve.plugins.findIndex(
+ ({ constructor }) => constructor && constructor.name === 'ModuleScopePlugin'
+ );
+
+ webpackConfig.resolve.plugins.splice(scopePluginIndex, 1);
+ return webpackConfig;
+ }
+ }
+};