Skip to content
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@
"yaml": "^2.3.0",
"semver": "^7.5.2",
"cookie": "^0.7.0",
"nanoid": "^3.3.8"
"nanoid": "^3.3.8",
"canvg": ">= 4.0.3"
},
"version": "0.0.0",
"volta": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@linode/manager": Tech Stories
---

Remedy canvg dependency vulnerability ([#11839](https://github.com/linode/manager/pull/11839))
6 changes: 6 additions & 0 deletions packages/manager/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ const DIRNAME = new URL('.', import.meta.url).pathname;
export default defineConfig({
build: {
outDir: 'build',
rollupOptions: {
// Optional dependency that isn't used in the application,
// and has a resolution that could cause run-time issues if ever used with jspdf.
// See https://www.npmjs.com/package/jspdf
external: ['canvg'],
},
},
envPrefix: 'REACT_APP_',
plugins: [react(), svgr({ exportAsDefault: true })],
Expand Down
20 changes: 6 additions & 14 deletions pnpm-lock.yaml

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