Fix build issues with main. Continue on build issues for renderer. Add missing dependencies, update webpack configs

This commit is contained in:
sayhiben
2024-08-20 11:38:12 -07:00
parent 2a6a926f6e
commit 16166990ed
7 changed files with 633 additions and 39 deletions

View File

@@ -7,7 +7,7 @@ import Koa from 'koa'
import basicAuth from 'koa-basic-auth'
import route from 'koa-route'
import serveStatic from 'koa-static'
import views from 'koa-views'
import views from '@ladjs/koa-views'
import websocket from 'koa-easy-ws'
import WebSocket from 'ws'
import * as Y from 'yjs'

View File

@@ -1,6 +1,6 @@
// Mock koa middleware that require built statics
jest.mock('koa-static', () => () => (ctx, next) => next())
jest.mock('koa-views', () => () => (ctx, next) => {
jest.mock('@ladjs/koa-views', () => () => (ctx, next) => {
ctx.render = async () => {
ctx.body = 'mock'
}