Add non-legacy routes when in isolation

This commit is contained in:
Marcus Eide
2020-09-01 10:46:52 +02:00
parent 501f8b2c25
commit a85ca3123c
+11 -2
View File
@@ -199,8 +199,17 @@ class DevAppBuilder {
for (const plugin of plugins) {
for (const output of plugin.output()) {
if (output.type === 'legacy-route') {
paths.push(output.path);
switch (output.type) {
case 'legacy-route': {
paths.push(output.path);
break;
}
case 'route': {
paths.push(output.target.path);
break;
}
default:
break;
}
}
}