MCPcopy Create free account
hub / github.com/webpack/webpack-cli / withoutExperimentalWarnings

Function withoutExperimentalWarnings

test/utils/test-utils.js:378–379  ·  view source on GitHub ↗
(stderr)

Source from the content-addressed store, hash-verified

376// webpack >= 5.110 strips types through `module.stripTypeScriptTypes`, which
377// Node.js flags as experimental — upstream noise the CLI does not control.
378const withoutExperimentalWarnings = (stderr) =>
379 typeof stderr === "string" ? stderr.replaceAll(EXPERIMENTAL_WARNING_RE, "") : stderr;
380
381const uniqueDirectoryForTest = async () => {
382 const result = path.resolve(path.resolve(__dirname, "../create-webpack-app-testing"), uuid());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected