aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/.babelrc
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-07-18 15:11:50 +0200
committerGitHub <noreply@github.com>2017-07-18 15:11:50 +0200
commitf42aaaa98952fa997665dfbe29515eb993e67701 (patch)
tree871b4771a6354d5a2e52f20e82914eae2e1f2420 /server/sonar-web/.babelrc
parentf3c05bcc9a63fd20dafe0411490265103b599179 (diff)
downloadsonarqube-f42aaaa98952fa997665dfbe29515eb993e67701.tar.gz
sonarqube-f42aaaa98952fa997665dfbe29515eb993e67701.zip
replace require.ensure with dymamic import (#2187)
Diffstat (limited to 'server/sonar-web/.babelrc')
-rw-r--r--server/sonar-web/.babelrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/sonar-web/.babelrc b/server/sonar-web/.babelrc
index 3f2673a82bd..2962b9304d5 100644
--- a/server/sonar-web/.babelrc
+++ b/server/sonar-web/.babelrc
@@ -25,11 +25,13 @@
"env": {
"production": {
"plugins": [
+ "syntax-dynamic-import",
"transform-react-constant-elements"
]
},
"development": {
"plugins": [
+ "syntax-dynamic-import",
"transform-react-jsx-source",
"transform-react-jsx-self"
]
@@ -37,6 +39,7 @@
"test": {
"plugins": [
"transform-es2015-modules-commonjs",
+ "dynamic-import-node",
"transform-react-jsx-source",
"transform-react-jsx-self"
]