Skip to content

Commit

Permalink
fix(playground): use nuxt alias
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Oct 10, 2024
1 parent 3b51453 commit 3f58108
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 5 additions & 0 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { fileURLToPath } from "node:url";

export default defineNuxtConfig({
app: {
head: {
Expand All @@ -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"
],
Expand Down
7 changes: 1 addition & 6 deletions playground/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
{
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"paths": {
"plain-shiki": ["../src"]
}
}
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 3f58108

Please sign in to comment.