diff --git a/playground/nuxt.config.ts b/playground/nuxt.config.ts index 6124830..dc2fa30 100644 --- a/playground/nuxt.config.ts +++ b/playground/nuxt.config.ts @@ -1,3 +1,5 @@ +import { fileURLToPath } from "node:url"; + export default defineNuxtConfig({ app: { head: { @@ -7,6 +9,9 @@ export default defineNuxtConfig({ title: "Plain Shiki" } }, + alias: { + "plain-shiki": fileURLToPath(new URL("../src/index.ts", import.meta.url)) + }, css: [ "~/assets/style.css" ], diff --git a/playground/tsconfig.json b/playground/tsconfig.json index cb22b8d..eb97e3f 100644 --- a/playground/tsconfig.json +++ b/playground/tsconfig.json @@ -1,8 +1,3 @@ { - "extends": "./.nuxt/tsconfig.json", - "compilerOptions": { - "paths": { - "plain-shiki": ["../src"] - } - } + "extends": "./.nuxt/tsconfig.json" } \ No newline at end of file