Skip to content

Commit

Permalink
fix(deps): bundled pupa for ssr build
Browse files Browse the repository at this point in the history
  • Loading branch information
bent10 committed Sep 27, 2023
1 parent c22c24e commit 799f5e1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 7 deletions.
35 changes: 30 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"doogu": "^3.2.6",
"marked": "^9.0.3",
"prettier-plugin-svelte": "^3.0.3",
"pupa": "^3.1.0",
"react-dom": "^18.2.0",
"vite-plugin-cachedir": "^1.1.0"
},
Expand Down
3 changes: 1 addition & 2 deletions packages/code-preview/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@
"format": "prettier . --write --cache-location ../../node_modules/.prettier --ignore-path ../../.prettierignore"
},
"dependencies": {
"attributes-parser": "^1.0.4",
"pupa": "^3.1.0"
"attributes-parser": "^1.0.4"
},
"peerDependencies": {
"marked": ">=7.0.0"
Expand Down
3 changes: 3 additions & 0 deletions packages/code-preview/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export default defineConfig(({ command, ssrBuild }) => {

return {
plugins: [cacheDir()],
ssr: {
noExternal: ['pupa', 'escape-goat']
},
build,
test: {
globals: true,
Expand Down

0 comments on commit 799f5e1

Please sign in to comment.