When I use SvelteKit for blog system and I wanted to import markdown file as raw, so I use function of vite lie below
import.meta.glob('../data/*.md')
But it didn't work.
Then the function occured error like below.
throw new Error(Parse failure: ${err.message}\\nContents of line ${line}: ${code.split('\\n')[line - 1]});
Because I didn't configure settings of .md file.
I could solve the problem with vite-raw-plugin.
Top comments (1)
According to the docs - vitejs.dev/guide/features.html#glo...