Tag: vite
-
Import type
Wild TypeScript caveat appeared! In a destructuring type import, it apparently makes a difference whether the type keyword is inside or outside the curly braces: import type { A } from “a” – import skipped import { type A } from “a” – the import remains It seems this is designed for cases where the…
-
Streams in Vite
I’m trying to use N3 to parse and query Turtle files in a Vite/Vue 3 project. The N3 readme says “N3.js seamlessly works in browsers via webpack or browserify” and I had trouble interpreting what that would mean in a Vite context. I made an attempt at properly learning all about bundling, but I did…