diff --git a/client-src/index.ts b/client-src/index.ts index 41960a5..68d4286 100644 --- a/client-src/index.ts +++ b/client-src/index.ts @@ -9,10 +9,10 @@ */ // @ts-expect-error: No type definitions available for '@rspack/core/hot/emitter.js' -import hotEmitter from '@rspack/core/hot/emitter.js'; +import { emitter as hotEmitter } from '@rspack/core/hot/emitter.js'; /* Rspack dev server runtime client */ // @ts-expect-error: No type definitions available for '@rspack/core/hot/log.js' -import webpackHotLog from '@rspack/core/hot/log.js'; +import { log as webpackHotLog } from '@rspack/core/hot/log.js'; import { createOverlay, formatProblem } from './overlay.js'; import socket from './socket.js'; import { defineProgressElement, isProgressSupported } from './progress.js'; diff --git a/package.json b/package.json index be8d3ca..0c02d70 100644 --- a/package.json +++ b/package.json @@ -92,7 +92,7 @@ "style-loader": "^4.0.0", "supertest": "^6.1.3", "tcp-port-used": "^1.0.2", - "typescript": "5.9.3", + "typescript": "^5.9.3", "wait-for-expect": "^3.0.2", "webpack": "^5.94.0", "webpack-dev-middleware": "^7.4.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fbce601..e64cc36 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -175,7 +175,7 @@ importers: specifier: ^1.0.2 version: 1.0.2 typescript: - specifier: 5.9.3 + specifier: ^5.9.3 version: 5.9.3 wait-for-expect: specifier: ^3.0.2 diff --git a/tsconfig.json b/tsconfig.json index 9480542..509464d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,8 +18,5 @@ "outDir": "dist", "rootDir": "src" }, - "ts-node": { - "transpileOnly": true - }, "include": ["src/**/*", "src/options.json"] }