Unverified Commit d922e3d4 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Remove un-necessary undici warnings (#48970)

These warnings aren't actionable by users so this removes them from our
compiled undici version.

x-ref: [slack
thread](https://vercel.slack.com/archives/C04R82GSDBN/p1682704853867449?thread_ts=1682624317.557059&cid=C04R82GSDBN)
parent 7b348fa0
This diff is collapsed.
...@@ -292,6 +292,14 @@ export async function ncc_undici(task, opts) { ...@@ -292,6 +292,14 @@ export async function ncc_undici(task, opts) {
.source(relative(__dirname, require.resolve('undici'))) .source(relative(__dirname, require.resolve('undici')))
.ncc({ packageName: 'undici', externals }) .ncc({ packageName: 'undici', externals })
.target('src/compiled/undici') .target('src/compiled/undici')
const outputFile = join('src/compiled/undici/index.js')
await fs.writeFile(
outputFile,
(
await fs.readFile(outputFile, 'utf8')
).replace(/process\.emitWarning/g, 'void')
)
} }
// eslint-disable-next-line camelcase // eslint-disable-next-line camelcase
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment