refactor: migrate from shiki to shikiji (#2520)
This commit is contained in:
parent
e63473a5f8
commit
74138a9a58
17 changed files with 124 additions and 223 deletions
|
@ -157,11 +157,6 @@ export default defineNuxtConfig({
|
|||
maxAge: 24 * 60 * 60 * 365, // 1 year (versioned)
|
||||
baseURL: '/fonts',
|
||||
},
|
||||
{
|
||||
dir: '~/public/shiki',
|
||||
maxAge: 24 * 60 * 60 * 365, // 1 year, matching service worker
|
||||
baseURL: '/shiki',
|
||||
},
|
||||
],
|
||||
},
|
||||
sourcemap: isDevelopment,
|
||||
|
@ -179,7 +174,7 @@ export default defineNuxtConfig({
|
|||
const alias = config.resolve!.alias as Record<string, string>
|
||||
for (const dep of ['eventemitter3', 'isomorphic-ws'])
|
||||
alias[dep] = resolve('./mocks/class')
|
||||
for (const dep of ['shiki-es', 'fuse.js'])
|
||||
for (const dep of ['fuse.js'])
|
||||
alias[dep] = 'unenv/runtime/mock/proxy'
|
||||
const resolver = createResolver(import.meta.url)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue