Skip to content

Commit

Permalink
fix: add github-slugger to ALWAYS_EXTERNAL (#3902)
Browse files Browse the repository at this point in the history
* fix: add github-slugger to ALWAYS_EXTERNAL

* chore: changeset
  • Loading branch information
bholmesdev committed Jul 12, 2022
1 parent 0751be8 commit d8af02a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/giant-bugs-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix: markdown "require is not defined" issue
2 changes: 2 additions & 0 deletions packages/astro/src/core/create-vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const ALWAYS_EXTERNAL = new Set([
'@sveltejs/vite-plugin-svelte',
'micromark-util-events-to-acorn',
'@astrojs/markdown-remark',
// in-lined for markdown modules
'github-slugger',
'node-fetch',
'prismjs',
'shiki',
Expand Down

0 comments on commit d8af02a

Please sign in to comment.