From cc57e2e4732b4679b44bd599ba5a86afa1544918 Mon Sep 17 00:00:00 2001 From: HoshinoSuzumi Date: Sat, 16 Nov 2024 03:11:12 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .playground/nuxt.config.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.playground/nuxt.config.ts b/.playground/nuxt.config.ts index ff1d59a..05ca60e 100644 --- a/.playground/nuxt.config.ts +++ b/.playground/nuxt.config.ts @@ -2,6 +2,13 @@ import defaultTheme from "tailwindcss/defaultTheme"; export default defineNuxtConfig({ extends: [".."], + vite: { + build: { + rollupOptions: { + external: ["shiki/wasm"], + }, + }, + }, modules: ["@nuxt/eslint", "@nuxt/fonts", "nuxt-shiki"], tailwindcss: { config: { @@ -15,7 +22,16 @@ export default defineNuxtConfig({ }, }, shiki: { - bundledLangs: ["js", "ts", "json", "html", "css", "yaml", "vue", "vue-html"], + bundledLangs: [ + "js", + "ts", + "json", + "html", + "css", + "yaml", + "vue", + "vue-html", + ], bundledThemes: ["light-plus", "dark-plus"], highlightOptions: { themes: {