Amadeus Maximilian on Nostr: I believe the reason it is being bundled in the first place is because some of my Vue ...
I believe the reason it is being bundled in the first place is because some of my Vue components in the project are being hydrated, so when they import the link map, Vite thinks the component needs to be able to be able to generate that map—which is not true, the module generating the link map does so only once and then exports just the maps, not the function to create them. 😅
I’ve tried passing the generated maps down from Astro as props, but I still had the generator in my bundle. 🤔
Published at
2024-08-07 21:30:31Event JSON
{
"id": "6f2542d8293ffa9ec54b6c7413447ced4ee59cba2a22faeee2240a3ebd5a208b",
"pubkey": "6f79abf2242534084694d8acdf4e9fec16dbfa33913c05e9e5396b4a157a5dd7",
"created_at": 1723066231,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.design/@amxmln/112922868527817525",
"web"
],
[
"p",
"6f79abf2242534084694d8acdf4e9fec16dbfa33913c05e9e5396b4a157a5dd7"
],
[
"e",
"d5fb04f9713fddca99e4862588fda625ee9ed2080b370966002e35d486c19e2e",
"",
"root",
"6f79abf2242534084694d8acdf4e9fec16dbfa33913c05e9e5396b4a157a5dd7"
],
[
"proxy",
"https://mastodon.design/users/amxmln/statuses/112922868527817525",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://mastodon.design/users/amxmln/statuses/112922868527817525",
"pink.momostr"
],
[
"-"
]
],
"content": "I believe the reason it is being bundled in the first place is because some of my Vue components in the project are being hydrated, so when they import the link map, Vite thinks the component needs to be able to be able to generate that map—which is not true, the module generating the link map does so only once and then exports just the maps, not the function to create them. 😅\n\nI’ve tried passing the generated maps down from Astro as props, but I still had the generator in my bundle. 🤔",
"sig": "e411fcc975d69d89f8ae0f0f170c962c9b8f397331679f864d22c1c2edb2705a8e1494068e79446ab163e33db0010d6cec4b27c355a1e1108b4af7b256a50c86"
}