From 075544d3f56606e494fd6b52d0bb289a38361983 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 2 Nov 2022 09:51:47 -0100 Subject: [PATCH] Bug 32030: Fix for vue warning We were getting the following warning in the console: runtime-core.esm-bundler.js:5122 Feature flags VUE_OPTIONS_API, VUE_PROD_DEVTOOLS are not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle. Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- webpack.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webpack.config.js b/webpack.config.js index 0c6183f87e..e009cba3f7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,6 +1,7 @@ const { VueLoaderPlugin } = require("vue-loader"); const autoprefixer = require("autoprefixer"); const path = require("path"); +const webpack = require('webpack'); module.exports = { entry: { @@ -34,5 +35,9 @@ module.exports = { }, plugins: [ new VueLoaderPlugin(), + new webpack.DefinePlugin({ + __VUE_OPTIONS_API__: true, + __VUE_PROD_DEVTOOLS__: false, + }), ], }; -- 2.39.5