aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/routes.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/routes.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/routes.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/routes.js b/server/sonar-web/src/main/js/apps/quality-gates/routes.js
index 495278f0d0a..8664f1f39bb 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/routes.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/routes.js
@@ -20,24 +20,18 @@
const routes = [
{
getComponent(_, callback) {
- require.ensure([], require =>
- callback(null, require('./containers/QualityGatesAppContainer').default)
- );
+ import('./containers/QualityGatesAppContainer').then(i => callback(null, i.default));
},
childRoutes: [
{
getIndexRoute(_, callback) {
- require.ensure([], require =>
- callback(null, { component: require('./components/Intro').default })
- );
+ import('./components/Intro').then(i => callback(null, { component: i.default }));
}
},
{
path: 'show/:id',
getComponent(_, callback) {
- require.ensure([], require =>
- callback(null, require('./containers/DetailsContainer').default)
- );
+ import('./containers/DetailsContainer').then(i => callback(null, i.default));
}
}
]