Merge branch 'dev' into newDevTools

This commit is contained in:
sadan4 2024-09-04 20:40:00 -04:00 committed by GitHub
commit 8bcfcf7ccd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 488 additions and 323 deletions

View file

@ -337,5 +337,6 @@ 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"),
...commonOpts.plugins
];