diff --git a/package.json b/package.json index afa0cf72..854b96b4 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "@ffmpeg/ffmpeg": "^0.12.10", "@ffmpeg/util": "^0.12.1", "@intrnl/xxhash64": "^0.1.2", + "@sapphi-red/web-noise-suppressor": "0.3.5", "@types/less": "^3.0.6", "@types/stylus": "^0.48.42", "@types/tinycolor2": "^1.4.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18887552..6a71ee39 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,6 +25,9 @@ importers: '@intrnl/xxhash64': specifier: ^0.1.2 version: 0.1.2 + '@sapphi-red/web-noise-suppressor': + specifier: 0.3.5 + version: 0.3.5 '@types/less': specifier: ^3.0.6 version: 3.0.6(patch_hash=krcufrsfhsuxuoj7hocqugs6zi) @@ -802,6 +805,9 @@ packages: engines: {node: '>=18'} hasBin: true + '@sapphi-red/web-noise-suppressor@0.3.5': + resolution: {integrity: sha512-jh3+V9yM+zxLriQexoGm0GatoPaJWjs6ypFIbFYwQp+AoUb55eUXrjKtKQyuC5zShzzeAQUl0M5JzqB7SSrsRA==} + '@socket.io/component-emitter@3.1.2': resolution: {integrity: sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA==} @@ -3349,6 +3355,8 @@ snapshots: transitivePeerDependencies: - supports-color + '@sapphi-red/web-noise-suppressor@0.3.5': {} + '@socket.io/component-emitter@3.1.2': {} '@stylistic/eslint-plugin@2.12.1(eslint@9.17.0(patch_hash=xm46kqcmdgzlmm4aifkfpxaho4))(typescript@5.7.2)': diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index 17fc2cd3..cfa46865 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -361,7 +361,6 @@ export const commonOpts = { const escapedBuiltinModules = builtinModules .map(m => m.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")) .join("|"); -const builtinModuleRegex = new RegExp(`^(node:)?(${escapedBuiltinModules})$`); export const commonRendererPlugins = [ banImportPlugin(/^react$/, "Cannot import from react. React and hooks should be imported from @webpack/common"),