Browse Source

Merge pull request #1029 from AprildreamMI/dev

fix: fix vue-i18n warning
Ahmad Kholid 2 years ago
parent
commit
ec7ed0d91e
1 changed files with 6 additions and 0 deletions
  1. 6 0
      webpack.config.js

+ 6 - 0
webpack.config.js

@@ -216,6 +216,12 @@ const options = {
       __VUE_OPTIONS_API__: true,
       __VUE_OPTIONS_API__: true,
       __VUE_PROD_DEVTOOLS__: false,
       __VUE_PROD_DEVTOOLS__: false,
     }),
     }),
+    // Fix i18n warning
+    new webpack.DefinePlugin({
+      __VUE_I18N_FULL_INSTALL__: JSON.stringify(true),
+      __INTLIFY_PROD_DEVTOOLS__: JSON.stringify(false),
+      __VUE_I18N_LEGACY_API__: JSON.stringify(false),
+    }),
   ],
   ],
   infrastructureLogging: {
   infrastructureLogging: {
     level: 'info',
     level: 'info',