Excluding library from build

Hey guys, we're currently experiencing this issue with our recent build https://github.com/firebase/firebase-js-sdk/issues/7617 Basically, firebase's sdk includes a random dynamic connection to recaptcha libraries which then means the Chrome Web Store will reject it for remote code. The specific pain point for many people is only needed if you use a phone number for login reasons. We're not doing that, and we're not going to be doing that, and we'd like to remove that from our project completely, pre-build, if possible. I recently ran into another issue, https://github.com/date-fns/date-fns/issues/3670 where it showed how plasmo created the attached build config. Is there any way I can actual force that myself? I've looked into potential ways of monkeypatching firebase's index, specifically
import { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
import { RecaptchaVerifier } from './src/platform_browser/recaptcha/recaptcha_verifier';
import { signInWithPhoneNumber, linkWithPhoneNumber, reauthenticateWithPhoneNumber, updatePhoneNumber } from './src/platform_browser/strategies/phone';
import { RecaptchaVerifier } from './src/platform_browser/recaptcha/recaptcha_verifier';
as these are the two areas which bring the bad stuff in. Is this a question youd guys would know about, or would I be better heading to parcel?
GitHub
Chrome Web Store Team complains a Violation: My Extension (Cancelly...
Operating System macOS Ventura 13.5 Browser Version 116.0.5845.179 (Official Build) (arm64) Firebase SDK Version ^10.1.0 Firebase SDK Product: Auth Describe your project's tooling I am using th...
GitHub
formatRelative is failing in a production build · Issue #3670 · dat...
Putting these lines in a react project, try { const asdf = formatRelative(subDays(new Date(), 3), new Date()) console.log("asdf", asdf) } catch (error) { console.error(error) } Works as e...
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server