Skip to content

Commit

Permalink
More removing of serialize-javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanM04 committed May 3, 2022
1 parent c0d18ca commit fa51fe6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions packages/astro/src/@types/serialize-javascript.d.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/astro/src/core/create-vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const ALWAYS_EXTERNAL = new Set([
...builtinModules.map((name) => `node:${name}`),
'@sveltejs/vite-plugin-svelte',
'micromark-util-events-to-acorn',
'serialize-javascript',
'node-fetch',
'prismjs',
'shiki',
Expand Down Expand Up @@ -91,13 +90,6 @@ export async function createVite(
css: {
postcss: astroConfig.style.postcss || {},
},
resolve: {
alias: {
// This is needed for Deno compatibility, as the non-browser version
// of this module depends on Node `crypto`
randombytes: 'randombytes/browser',
},
},
// Note: SSR API is in beta (https://vitejs.dev/guide/ssr.html)
ssr: {
external: [...ALWAYS_EXTERNAL],
Expand Down

0 comments on commit fa51fe6

Please sign in to comment.