From 502c799b1d607bbcaf457bc9cddb8498ea58166d Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 27 Oct 2021 15:05:42 -0400 Subject: [PATCH] Config changes needed for stater template (#1680) This does 2 things: 1. Adds prismjs as a dep. 2. Adds shiki as an external. --- packages/astro/package.json | 1 + packages/astro/src/core/create-vite.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/astro/package.json b/packages/astro/package.json index 44fed2723..f8ed92bc8 100644 --- a/packages/astro/package.json +++ b/packages/astro/package.json @@ -78,6 +78,7 @@ "morphdom": "^2.6.1", "node-fetch": "^2.6.5", "path-to-regexp": "^6.2.0", + "prismjs": "^1.25.0", "remark-slug": "^7.0.0", "resolve": "^1.20.0", "sass": "^1.43.3", diff --git a/packages/astro/src/core/create-vite.ts b/packages/astro/src/core/create-vite.ts index 2692f3464..7f6c4ef7f 100644 --- a/packages/astro/src/core/create-vite.ts +++ b/packages/astro/src/core/create-vite.ts @@ -18,6 +18,7 @@ const ALWAYS_EXTERNAL = new Set([ 'micromark-util-events-to-acorn', 'node-fetch', 'prismjs', + 'shiki', 'shorthash', 'unified', 'whatwg-url',