N
NuxtArmoredBear

dealing with External imports

i am using a runtime that auto injects imports from "socket:*", what is the best way to get nuxt/vite/rollup to ignore these imports during dev and building
A
ArmoredBear15d ago
adding
vite:{
build:{
rollupOptions:{
external: [/socket:.*/],
}
}
},
vite:{
build:{
rollupOptions:{
external: [/socket:.*/],
}
}
},
to my nuxt config makes builds work, but dev still fails to "pre transform imports from "socket:os" / "socket:*"