Add more FIXME and explain better TODOS for migrations

This commit is contained in:
Nuckyz 2025-01-30 16:01:57 -03:00
parent b2d5c00a23
commit 414539f45e
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
10 changed files with 13 additions and 3 deletions

View file

@ -46,6 +46,7 @@ export default definePlugin({
find: "#{intl::ONBOARDING_CHANNEL_THRESHOLD_WARNING}",
replacement: [
{
// FIXME(Bundler change related): Remove old compatiblity once enough time has passed
match: /{(?:\i:(?:function\(\){return |\(\)=>)\i}?,?){2}}/,
replace: m => m.replaceAll(canonicalizeMatch(/(function\(\){return |\(\)=>)\i/g), "$1()=>Promise.resolve(true)")
}