diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-07-18 15:11:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-18 15:11:50 +0200 |
commit | f42aaaa98952fa997665dfbe29515eb993e67701 (patch) | |
tree | 871b4771a6354d5a2e52f20e82914eae2e1f2420 /server/sonar-web/src/main/js/apps/component | |
parent | f3c05bcc9a63fd20dafe0411490265103b599179 (diff) | |
download | sonarqube-f42aaaa98952fa997665dfbe29515eb993e67701.tar.gz sonarqube-f42aaaa98952fa997665dfbe29515eb993e67701.zip |
replace require.ensure with dymamic import (#2187)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component')
-rw-r--r-- | server/sonar-web/src/main/js/apps/component/routes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/component/routes.js b/server/sonar-web/src/main/js/apps/component/routes.js index edb7d77a7f2..9943b1d8380 100644 --- a/server/sonar-web/src/main/js/apps/component/routes.js +++ b/server/sonar-web/src/main/js/apps/component/routes.js @@ -21,7 +21,7 @@ const routes = [ { indexRoute: { getComponent(_, callback) { - require.ensure([], require => callback(null, require('./components/App').default)); + import('./components/App').then(i => callback(null, i.default)); } } } |