Skip to content

Commit e2a35ad

Browse files
committed
fix: replace isomorphic-dompurify with sanitize-html
1 parent 0dea5c9 commit e2a35ad

4 files changed

Lines changed: 144 additions & 85 deletions

File tree

nuxt.config.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default defineNuxtConfig({
55
'@nuxtjs/html-validator',
66
'@nuxt/scripts',
77
'@nuxt/fonts',
8-
// 'nuxt-og-image',
8+
'nuxt-og-image',
99
'@nuxt/test-utils',
1010
'@vite-pwa/nuxt',
1111
],
@@ -52,12 +52,6 @@ export default defineNuxtConfig({
5252

5353
compatibilityDate: '2024-04-03',
5454

55-
nitro: {
56-
externals: {
57-
inline: ['isomorphic-dompurify', '@exodus/bytes', 'html-encoding-sniffer'],
58-
},
59-
},
60-
6155
eslint: {
6256
config: {
6357
stylistic: true,

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
"nuxt": "https://pkg.pr.new/nuxt@8d4f9ba",
3333
"nuxt-og-image": "^5.1.13",
3434
"perfect-debounce": "^2.1.0",
35+
"sanitize-html": "^2.17.0",
3536
"shiki": "^3.21.0",
37+
"ufo": "^1.6.3",
3638
"unplugin-vue-router": "^0.19.2",
3739
"vue": "3.5.26"
3840
},
@@ -41,16 +43,15 @@
4143
"@npm/types": "^2.1.0",
4244
"@nuxt/test-utils": "3.23.0",
4345
"@playwright/test": "1.57.0",
46+
"@types/sanitize-html": "^2.16.0",
4447
"@unocss/nuxt": "^66.6.0",
4548
"@vite-pwa/assets-generator": "^1.0.2",
4649
"@vite-pwa/nuxt": "^1.1.0",
4750
"@vitest/browser-playwright": "^4.0.17",
4851
"@vitest/coverage-v8": "^4.0.17",
4952
"@vue/test-utils": "2.4.6",
50-
"dompurify": "^3.3.1",
5153
"eslint": "9.39.2",
5254
"happy-dom": "20.3.4",
53-
"isomorphic-dompurify": "^2.35.0",
5455
"lint-staged": "16.2.7",
5556
"marked": "^17.0.1",
5657
"playwright-core": "^1.57.0",

0 commit comments

Comments
 (0)