aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/config
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-22 11:05:08 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:44:59 +0100
commit50a5072f5fde0214e9e5e99ad246e2f743b9ac46 (patch)
treeec630f350fe009258fb76d050d6bfb40157a6a11 /server/sonar-web/config
parent9d62bc6df05b958d154e831a52302e46b89e7d77 (diff)
downloadsonarqube-50a5072f5fde0214e9e5e99ad246e2f743b9ac46.tar.gz
sonarqube-50a5072f5fde0214e9e5e99ad246e2f743b9ac46.zip
Update webpack dependencies
Diffstat (limited to 'server/sonar-web/config')
-rw-r--r--server/sonar-web/config/polyfills.js3
-rw-r--r--server/sonar-web/config/webpack.config.js4
2 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/config/polyfills.js b/server/sonar-web/config/polyfills.js
index 7934db84cb8..aeb84b8e3e2 100644
--- a/server/sonar-web/config/polyfills.js
+++ b/server/sonar-web/config/polyfills.js
@@ -17,5 +17,6 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-import '@babel/polyfill';
+import 'core-js/stable';
+import 'regenerator-runtime/runtime';
import 'whatwg-fetch';
diff --git a/server/sonar-web/config/webpack.config.js b/server/sonar-web/config/webpack.config.js
index ebd2bffa49a..97aa7dc4eef 100644
--- a/server/sonar-web/config/webpack.config.js
+++ b/server/sonar-web/config/webpack.config.js
@@ -153,9 +153,7 @@ module.exports = ({ production = true }) => {
]
},
plugins: [
- // `allowExternal: true` to remove files outside of the current dir
- production &&
- new CleanWebpackPlugin([paths.appBuild], { allowExternal: true, verbose: false }),
+ production && new CleanWebpackPlugin(),
production &&
new CopyWebpackPlugin([