mirror of
https://github.com/Equicord/Equicord.git
synced 2025-04-01 21:21:58 -04:00
Update common.mjs
This commit is contained in:
parent
67bacaf855
commit
6b4b853fc7
1 changed files with 0 additions and 1 deletions
|
@ -364,7 +364,6 @@ const escapedBuiltinModules = builtinModules
|
|||
const builtinModuleRegex = new RegExp(`^(node:)?(${escapedBuiltinModules})$`);
|
||||
|
||||
export const commonRendererPlugins = [
|
||||
banImportPlugin(builtinModuleRegex, "Cannot import node inbuilt modules in browser code. You need to use a native.ts file"),
|
||||
banImportPlugin(/^react$/, "Cannot import from react. React and hooks should be imported from @webpack/common"),
|
||||
banImportPlugin(/^electron(\/.*)?$/, "Cannot import electron in browser code. You need to use a native.ts file"),
|
||||
banImportPlugin(/^ts-pattern$/, "Cannot import from ts-pattern. match and P should be imported from @webpack/common"),
|
||||
|
|
Loading…
Add table
Reference in a new issue