Skip to content

Commit

Permalink
updated tsconfig module handling
Browse files Browse the repository at this point in the history
  • Loading branch information
suterma committed Jan 28, 2023
1 parent 63be2ef commit 437d172
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 33 deletions.
47 changes: 15 additions & 32 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import Play from '../views/Play.vue';
import Setlist from '../views/Setlist.vue';
import Settings from '../views/Settings.vue';
import About from '../views/About.vue';
import Demo from '../views/Demo.vue';
import Development from '../views/Development.vue';
import { useTitle } from '@vueuse/core';
import { store } from '@/store/store';
import { computed } from 'vue';

//import List from '../views/List.vue';

/** The app routes
* @devdoc route level code-splitting is not used, because it is not supported with ES6/2015
* Also, the views in Replayer are rather small (especially those rarely used) and would not profit from this anyway.
*/
const routes: Array<RouteRecordRaw> = [
{ path: '/', redirect: { name: 'Play' } },
{
Expand All @@ -29,51 +36,27 @@ const routes: Array<RouteRecordRaw> = [
{
path: '/setlist',
name: 'Setlist',
//component: Setlist,

// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "setlist" */ '../views/Setlist.vue'),
component: Setlist,
},
{
path: '/settings',
name: 'Settings',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this routeF
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "settings" */ '../views/Settings.vue'),
component: Settings,
},
{
path: '/about',
name: 'About',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "about" */ '../views/About.vue'),
component: About,
},
{
path: '/demo',
name: 'Demo',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(/* webpackChunkName: "demo" */ '../views/Demo.vue'),
component: Demo,
},
{
path: '/development',
name: 'Development',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import(
/* webpackChunkName: "development" */ '../views/Development.vue'
),
component: Development,
},
];

Expand All @@ -82,7 +65,7 @@ const router = createRouter({
routes,
});

/** Use the current route and complilation as the title for the document */
/** Use the current route and compilation as the title for the document */
const title = computed(() => {
let compilationInfo = '';
const compilationTitle = store.getters.compilation.Title;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"target": "es2015",
// downlevelIteration provides iteration support for es5 and below
"downlevelIteration": true,
"module": "commonjs",
"module": "ES6" /*ES6 is a.k.a ES2015*/,
"strict": true,
"declaration": true,
"jsx": "preserve",
Expand Down

0 comments on commit 437d172

Please sign in to comment.