Skip to content

Commit

Permalink
Revert "revert dev-server change"
Browse files Browse the repository at this point in the history
This reverts commit c45f2cc.
  • Loading branch information
dai-shi committed Jul 10, 2024
1 parent c45f2cc commit 65c8c2d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/waku/src/lib/middleware/dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
fileURLToFilePath,
encodeFilePathToAbsolute,
decodeFilePathFromAbsolute,
filePathToFileURL,
} from '../utils/path.js';
import { patchReactRefresh } from '../plugins/patch-react-refresh.js';
import { nonjsResolvePlugin } from '../plugins/vite-plugin-nonjs-resolve.js';
Expand Down Expand Up @@ -310,9 +309,6 @@ export const devServer: Middleware = (options) => {
(globalThis as any).__WAKU_PRIVATE_ENV__ = options.env || {};
const configPromise = resolveConfig(options.config);

(globalThis as any).__WAKU_HACK_IMPORT__ = async (id: string) =>
loadServerFileRsc(filePathToFileURL(id));

const {
vitePromise,
loadServerFileMain,
Expand Down

0 comments on commit 65c8c2d

Please sign in to comment.