Skip to content

Commit

Permalink
revert: react-dev-overlay/src/middleware.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Sep 6, 2023
1 parent 8cfefda commit b95a953
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react-dev-overlay/src/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { codeFrameColumns } from '@babel/code-frame'
import { constants as FS, promises as fs } from 'fs'
import { IncomingMessage, ServerResponse } from 'http'
import path from 'path'
Expand Down Expand Up @@ -235,8 +236,6 @@ export async function createOriginalStackFrame({
arguments: [],
}

const { codeFrameColumns } = require('next/dist/compiled/babel/code-frame')

const originalCodeFrame: string | null =
!(originalFrame.file?.includes('node_modules') ?? true) &&
sourceContent &&
Expand Down

0 comments on commit b95a953

Please sign in to comment.