Feature Request - Client bundle blacklist #2902
TheRealFlyingCoder
started this conversation in
Proposals
Replies: 2 comments
-
maybe you can update the title to Feature Request - Client bundle denied list or something like that |
Beta Was this translation helpful? Give feedback.
0 replies
-
Well the terminology would be up to the team in the end :P Blacklist is good enough to get across what I mean though, it makes sense right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just a thought, but similar to how we currently have a
*.server.ts
flag to keep local server modules out of the client build, it would be extremely handy to include a config option for npm modules that should never show up or run in the client bundle:Firebase is the most obvious use case here, while other server modules may just bloat the client bundle or fail gracefully behind the scenes, the firebase and firebase-admin modules don't bundle together at all.
The resulting developer experience for firebase is a dance of re-exporting every utility you need behind a
firebase.server.ts
file.Beyond firebase, being able to explicitly define these bundles would offer a safety net for developers... And I have a feeling you could eventually push warnings in the remix dev console when a blacklisted server module is being used in the wrong plase
Beta Was this translation helpful? Give feedback.
All reactions