Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const pushBeforeCreate = (beforeCreate, item) => Array.isArray(beforeCreate)
? beforeCreate.concat(item)
: isFunction(beforeCreate)
? [beforeCreate, item]
: item
function router(router) {
invariant(
isFunction(router),
`[app.router] router should be function, but got ${typeof router}`,
);
app._router = router;
}
function router(router) {
invariant(
isFunction(router),
`[app.router] router should be function, but got ${typeof router}`,
);
app._router = router;
}
const router = router => {
invariant(isFunction(router), `[app.router] router should be function, but got ${typeof router}`)
Vue.use(VueRouter)
app._router = router
}
const start = container => {
var pushBeforeCreate = function pushBeforeCreate(beforeCreate, item) {
return Array.isArray(beforeCreate) ? beforeCreate.concat(item) : isFunction(beforeCreate) ? [beforeCreate, item] : item;
};
var router = function router(_router) {
invariant(isFunction(_router), '[app.router] router should be function, but got ' + (typeof _router === 'undefined' ? 'undefined' : _typeof(_router)));
Vue.use(VueRouter);
app._router = _router;
};
var start = function start(container) {