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
1 Reply
ArmoredBear
ArmoredBear4mo 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:*"