From e3c7e331f74d4ff45f0528b4c217f70bbc9efe9c Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 24 Dec 2022 16:31:26 +0800 Subject: [PATCH] perf(cli): remove vite-plugin-html (#11416) --- packages/vant-cli/package.json | 6 +- packages/vant-cli/site/index.html | 4 +- packages/vant-cli/site/mobile.html | 4 +- packages/vant-cli/src/config/vite.site.ts | 36 ++-- pnpm-lock.yaml | 211 +++------------------- 5 files changed, 52 insertions(+), 209 deletions(-) diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index 6b0efca7c..ff3cf16ab 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -42,6 +42,7 @@ "@jest/types": "^29.1.2", "@types/fs-extra": "^9.0.13", "@types/less": "^3.0.3", + "@types/lodash": "^4.14.191", "@types/markdown-it": "^12.2.3", "vue": "^3.2.45" }, @@ -68,9 +69,10 @@ "husky": "^8.0.1", "jest": "^29.1.2", "jest-canvas-mock": "^2.4.0", - "jest-serializer-html": "^7.1.0", "jest-environment-jsdom": "^29.1.2", + "jest-serializer-html": "^7.1.0", "less": "^4.1.3", + "lodash": "^4.17.21", "markdown-it": "^12.3.2", "markdown-it-anchor": "^8.6.4", "nano-staged": "^0.8.0", @@ -80,10 +82,10 @@ "postcss-load-config": "^3.1.4", "prettier": "^2.7.1", "release-it": "^15.4.1", + "terser": "^5.16.1", "transliteration": "^2.3.5", "typescript": "^4.8.2", "vite": "^4.0.3", - "vite-plugin-html": "^2.1.2", "vite-plugin-md": "^0.11.9", "vue-router": "^4.1.5" }, diff --git a/packages/vant-cli/site/index.html b/packages/vant-cli/site/index.html index 5764eeda9..20244e936 100644 --- a/packages/vant-cli/site/index.html +++ b/packages/vant-cli/site/index.html @@ -11,12 +11,12 @@ name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" /> - <%- meta %> + <%= meta %> <% if (headHtml) { %> - <%- headHtml %> + <%= headHtml %> <% } %> <% if (baiduAnalytics) { %> diff --git a/packages/vant-cli/src/config/vite.site.ts b/packages/vant-cli/src/config/vite.site.ts index 9939cc451..8e2f63aec 100644 --- a/packages/vant-cli/src/config/vite.site.ts +++ b/packages/vant-cli/src/config/vite.site.ts @@ -6,7 +6,7 @@ import vitePluginVue from '@vitejs/plugin-vue'; import vitePluginJsx from '@vitejs/plugin-vue-jsx'; import { setBuildTarget, getVantConfig, isDev } from '../common/index.js'; import { SITE_DIST_DIR, SITE_SRC_DIR } from '../common/constant.js'; -import { injectHtml } from 'vite-plugin-html'; +import lodash from 'lodash'; import type { InlineConfig, PluginOption } from 'vite'; import type MarkdownIt from 'markdown-it'; import { genSiteMobileShared } from '../compiler/gen-site-mobile-shared.js'; @@ -131,6 +131,18 @@ function vitePluginGenVantBaseCode(): PluginOption { }; } +function vitePluginHTML(data: object): PluginOption { + return { + name: 'vite-plugin-html', + transformIndexHtml: { + enforce: 'pre', + transform(html) { + return lodash.template(html)(data); + }, + }, + }; +} + export function getViteConfigForSiteDev(): InlineConfig { setBuildTarget('site'); @@ -177,18 +189,16 @@ export function getViteConfigForSiteDev(): InlineConfig { }, }), vitePluginJsx(), - injectHtml({ - data: { - ...siteConfig, - title, - // `description` is used by the HTML ejs template, - // so it needs to be written explicitly here to avoid error: description is not defined - description: siteConfig.description, - headHtml, - baiduAnalytics, - enableVConsole, - meta: getHTMLMeta(vantConfig), - }, + vitePluginHTML({ + ...siteConfig, + title, + // `description` is used by the HTML ejs template, + // so it needs to be written explicitly here to avoid error: description is not defined + description: siteConfig.description, + headHtml, + baiduAnalytics, + enableVConsole, + meta: getHTMLMeta(vantConfig), }), ], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f06263ca9..3fe758fdf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -92,6 +92,7 @@ importers: '@types/fs-extra': ^9.0.13 '@types/jest': ^29.1.1 '@types/less': ^3.0.3 + '@types/lodash': ^4.14.191 '@types/markdown-it': ^12.2.3 '@vant/eslint-config': ^3.5.0 '@vant/touch-emulator': ^1.4.0 @@ -115,6 +116,7 @@ importers: jest-environment-jsdom: ^29.1.2 jest-serializer-html: ^7.1.0 less: ^4.1.3 + lodash: ^4.17.21 markdown-it: ^12.3.2 markdown-it-anchor: ^8.6.4 nano-staged: ^0.8.0 @@ -124,10 +126,10 @@ importers: postcss-load-config: ^3.1.4 prettier: ^2.7.1 release-it: ^15.4.1 + terser: ^5.16.1 transliteration: ^2.3.5 typescript: ^4.8.2 vite: ^4.0.3 - vite-plugin-html: ^2.1.2 vite-plugin-md: ^0.11.9 vue: ^3.2.45 vue-router: ^4.1.5 @@ -157,6 +159,7 @@ importers: jest-environment-jsdom: 29.3.1 jest-serializer-html: 7.1.0 less: 4.1.3 + lodash: 4.17.21 markdown-it: 12.3.2 markdown-it-anchor: 8.6.5_2zb4u3vubltivolgu556vv4aom nano-staged: 0.8.0 @@ -166,16 +169,17 @@ importers: postcss-load-config: 3.1.4_postcss@8.4.20 prettier: 2.7.1 release-it: 15.5.0 + terser: 5.16.1 transliteration: 2.3.5 typescript: 4.9.3 - vite: 4.0.3_less@4.1.3 - vite-plugin-html: 2.1.2_vite@4.0.3 + vite: 4.0.3_less@4.1.3+terser@5.16.1 vite-plugin-md: 0.11.9_vite@4.0.3 vue-router: 4.1.6_vue@3.2.45 devDependencies: '@jest/types': 29.3.1 '@types/fs-extra': 9.0.13 '@types/less': 3.0.3 + '@types/lodash': 4.14.191 '@types/markdown-it': 12.2.3 vue: 3.2.45 @@ -632,15 +636,6 @@ packages: - supports-color dev: false - /@babel/template/7.18.10: - resolution: {integrity: sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.18.6 - '@babel/parser': 7.20.7 - '@babel/types': 7.20.7 - dev: false - /@babel/template/7.20.7: resolution: {integrity: sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==} engines: {node: '>=6.9.0'} @@ -650,24 +645,6 @@ packages: '@babel/types': 7.20.7 dev: false - /@babel/traverse/7.20.1: - resolution: {integrity: sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/code-frame': 7.18.6 - '@babel/generator': 7.20.7 - '@babel/helper-environment-visitor': 7.18.9 - '@babel/helper-function-name': 7.19.0 - '@babel/helper-hoist-variables': 7.18.6 - '@babel/helper-split-export-declaration': 7.18.6 - '@babel/parser': 7.20.7 - '@babel/types': 7.20.7 - debug: 4.3.4 - globals: 11.12.0 - transitivePeerDependencies: - - supports-color - dev: false - /@babel/traverse/7.20.10: resolution: {integrity: sha512-oSf1juCgymrSez8NI4A2sr4+uB/mFd9MXplYGPEBnfAuWmmyeVcHa6xLPiaRBcXkcb/28bgxmQLTVwFKE1yfsg==} engines: {node: '>=6.9.0'} @@ -686,15 +663,6 @@ packages: - supports-color dev: false - /@babel/types/7.20.2: - resolution: {integrity: sha512-FnnvsNWgZCr232sqtXggapvlkk/tuwR/qhGzcmxI0GXLCjmPYQPzio2FbdlWuY6y1sHFfQKk+rRbUZ9VStQMog==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/helper-string-parser': 7.19.4 - '@babel/helper-validator-identifier': 7.19.1 - to-fast-properties: 2.0.0 - dev: false - /@babel/types/7.20.7: resolution: {integrity: sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==} engines: {node: '>=6.9.0'} @@ -1476,6 +1444,10 @@ packages: /@types/linkify-it/3.0.2: resolution: {integrity: sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==} + /@types/lodash/4.14.191: + resolution: {integrity: sha512-BdZ5BCCvho3EIXw6wUCXHe7rS53AIDPLE+JzwgT+OsJk53oBfbSmZZ7CX4VaRoN78N+TJpFi9QPlfIVNmJYWxQ==} + dev: true + /@types/markdown-it/12.2.3: resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==} dependencies: @@ -1671,7 +1643,7 @@ packages: '@babel/core': 7.20.7 '@babel/plugin-transform-typescript': 7.20.2_@babel+core@7.20.7 '@vue/babel-plugin-jsx': 1.1.1_@babel+core@7.20.7 - vite: 4.0.3_less@4.1.3 + vite: 4.0.3_less@4.1.3+terser@5.16.1 vue: 3.2.45 transitivePeerDependencies: - supports-color @@ -1684,7 +1656,7 @@ packages: vite: ^4.0.0 vue: ^3.2.25 dependencies: - vite: 4.0.3_less@4.1.3 + vite: 4.0.3_less@4.1.3+terser@5.16.1 vue: 3.2.45 dev: false @@ -1697,9 +1669,9 @@ packages: dependencies: '@babel/helper-module-imports': 7.18.6 '@babel/plugin-syntax-jsx': 7.18.6_@babel+core@7.20.7 - '@babel/template': 7.18.10 - '@babel/traverse': 7.20.1 - '@babel/types': 7.20.2 + '@babel/template': 7.20.7 + '@babel/traverse': 7.20.10 + '@babel/types': 7.20.7 '@vue/babel-helper-vue-transform-on': 1.0.2 camelcase: 6.3.0 html-tags: 3.2.0 @@ -1967,10 +1939,6 @@ packages: dependencies: retry: 0.13.1 - /async/3.2.4: - resolution: {integrity: sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==} - dev: false - /asynckit/0.4.0: resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} @@ -2109,12 +2077,6 @@ packages: balanced-match: 1.0.2 concat-map: 0.0.1 - /brace-expansion/2.0.1: - resolution: {integrity: sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==} - dependencies: - balanced-match: 1.0.2 - dev: false - /braces/3.0.2: resolution: {integrity: sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==} engines: {node: '>=8'} @@ -2185,13 +2147,6 @@ packages: resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==} engines: {node: '>=6'} - /camel-case/4.1.2: - resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} - dependencies: - pascal-case: 3.1.2 - tslib: 2.4.1 - dev: false - /camelcase-keys/6.2.2: resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==} engines: {node: '>=8'} @@ -2254,13 +2209,6 @@ packages: resolution: {integrity: sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==} dev: false - /clean-css/5.3.1: - resolution: {integrity: sha512-lCr8OHhiWCTw4v8POJovCoh4T7I9U11yVsPjMWWnnMmp9ZowCxyad1Pathle/9HjaDp+fdQKjO9fQydE6RHTZg==} - engines: {node: '>= 10.0'} - dependencies: - source-map: 0.6.1 - dev: false - /cli-boxes/3.0.0: resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} engines: {node: '>=10'} @@ -2348,11 +2296,6 @@ packages: resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} dev: false - /commander/8.3.0: - resolution: {integrity: sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==} - engines: {node: '>= 12'} - dev: false - /commander/9.4.1: resolution: {integrity: sha512-5EEkTNyHNGFPD2H+c/dXXfQZYa/scCKasxWcXJaWnNJ99pnQN9Vnmqow+p+PlFPE63Q6mThaZws1T+HxfpgtPw==} engines: {node: ^12.20.0 || >=14} @@ -2814,13 +2757,6 @@ packages: domelementtype: 1.3.1 dev: false - /dot-case/3.0.4: - resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==} - dependencies: - no-case: 3.0.4 - tslib: 2.4.1 - dev: false - /dot-prop/5.3.0: resolution: {integrity: sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==} engines: {node: '>=8'} @@ -2834,26 +2770,9 @@ packages: dependencies: is-obj: 2.0.0 - /dotenv-expand/5.1.0: - resolution: {integrity: sha512-YXQl1DSa4/PQyRfgrv6aoNjhasp/p4qs9FjJ4q4cQk+8m4r6k4ZSiEyytKG8f8W9gi8WsQtIObNmKd+tMzNTmA==} - dev: false - - /dotenv/10.0.0: - resolution: {integrity: sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==} - engines: {node: '>=10'} - dev: false - /eastasianwidth/0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} - /ejs/3.1.8: - resolution: {integrity: sha512-/sXZeMlhS0ArkfX2Aw780gJzXSMPnKjtspYZv+f3NiKLlubezAHDU5+9xz6gd3/NhG3txQCo6xlglmTS+oTGEQ==} - engines: {node: '>=0.10.0'} - hasBin: true - dependencies: - jake: 10.8.5 - dev: false - /electron-to-chromium/1.4.284: resolution: {integrity: sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==} dev: false @@ -3394,12 +3313,6 @@ packages: resolution: {integrity: sha512-hjPFI8oE/2iQPVe4gbrJ73Pp+Xfub2+WI2LlXDbsaJBwT5wuMh35WNWVYYTpnz895shtwfyutMFLFywpQAFdLg==} engines: {node: '>= 6'} - /filelist/1.0.4: - resolution: {integrity: sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==} - dependencies: - minimatch: 5.1.0 - dev: false - /fill-range/7.0.1: resolution: {integrity: sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==} engines: {node: '>=8'} @@ -3764,11 +3677,6 @@ packages: resolution: {integrity: sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==} dev: false - /he/1.2.0: - resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} - hasBin: true - dev: false - /highlight.js/11.6.0: resolution: {integrity: sha512-ig1eqDzJaB0pqEvlPVIpSSyMaO92bH1N2rJpLMN/nX396wTpDA4Eq0uK+7I/2XG17pFaaKE0kjV/XPeGt7Evjw==} engines: {node: '>=12.0.0'} @@ -3796,20 +3704,6 @@ packages: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} dev: false - /html-minifier-terser/6.1.0: - resolution: {integrity: sha512-YXxSlJBZTP7RS3tWnQw74ooKa6L9b9i9QYXY21eUEvhZ3u9XLfv6OnFsQq6RxkhHygsaUMvYsZRV5rU/OVNZxw==} - engines: {node: '>=12'} - hasBin: true - dependencies: - camel-case: 4.1.2 - clean-css: 5.3.1 - commander: 8.3.0 - he: 1.2.0 - param-case: 3.0.4 - relateurl: 0.2.7 - terser: 5.15.1 - dev: false - /html-tags/3.2.0: resolution: {integrity: sha512-vy7ClnArOZwCnqZgvv+ddgHgJiAFXe3Ge9ML5/mBctVJoUoYPCdxVucOywjDARn6CVoh3dRSFdPHy2sX80L0Wg==} engines: {node: '>=8'} @@ -4297,17 +4191,6 @@ packages: es-get-iterator: 1.1.2 iterate-iterator: 1.0.2 - /jake/10.8.5: - resolution: {integrity: sha512-sVpxYeuAhWt0OTWITwT98oyV0GsXyMlXCF+3L1SuafBVUIr/uILGRB+NqwkzhgXKvoJpDIpQvqkUALgdmQsQxw==} - engines: {node: '>=10'} - hasBin: true - dependencies: - async: 3.2.4 - chalk: 4.1.2 - filelist: 1.0.4 - minimatch: 3.1.2 - dev: false - /jest-canvas-mock/2.4.0: resolution: {integrity: sha512-mmMpZzpmLzn5vepIaHk5HoH3Ka4WykbSoLuG/EKoJd0x0ID/t+INo1l8ByfcUJuDM+RIsL4QDg/gDnBbrj2/IQ==} dependencies: @@ -5034,12 +4917,6 @@ packages: chalk: 5.0.1 is-unicode-supported: 1.3.0 - /lower-case/2.0.2: - resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} - dependencies: - tslib: 2.4.1 - dev: false - /lowercase-keys/3.0.0: resolution: {integrity: sha512-ozCC6gdQ+glXOQsveKD0YsDy8DSQFjDTz4zyzEHNV5+JP5D62LmfDZ6o1cycFx9ouG940M5dE8C8CTewdj2YWQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} @@ -5197,13 +5074,6 @@ packages: dependencies: brace-expansion: 1.1.11 - /minimatch/5.1.0: - resolution: {integrity: sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg==} - engines: {node: '>=10'} - dependencies: - brace-expansion: 2.0.1 - dev: false - /minimist-options/4.1.0: resolution: {integrity: sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A==} engines: {node: '>= 6'} @@ -5294,13 +5164,6 @@ packages: dependencies: type-fest: 2.19.0 - /no-case/3.0.4: - resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} - dependencies: - lower-case: 2.0.2 - tslib: 2.4.1 - dev: false - /node-domexception/1.0.0: resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} engines: {node: '>=10.5.0'} @@ -5595,13 +5458,6 @@ packages: registry-url: 6.0.1 semver: 7.3.8 - /param-case/3.0.4: - resolution: {integrity: sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==} - dependencies: - dot-case: 3.0.4 - tslib: 2.4.1 - dev: false - /parent-module/1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} @@ -5646,13 +5502,6 @@ packages: entities: 4.4.0 dev: false - /pascal-case/3.1.2: - resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} - dependencies: - no-case: 3.0.4 - tslib: 2.4.1 - dev: false - /path-exists/3.0.0: resolution: {integrity: sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==} engines: {node: '>=4'} @@ -5991,11 +5840,6 @@ packages: dependencies: rc: 1.2.8 - /relateurl/0.2.7: - resolution: {integrity: sha512-G08Dxvm4iDN3MLM0EsP62EDV9IuhXPR6blNz6Utcp7zyV3tr4HVNINt6MpaRWbxoOHT3Q7YN2P+jaHX8vUbgog==} - engines: {node: '>= 0.10'} - dev: false - /release-it/15.5.0: resolution: {integrity: sha512-/pQo/PwEXAWRBgVGLE+3IQ3hUoeiDZMGAo/Egin1envCyLyjzrU7+0P2w4iZ1Xv5OxhC2AcaPaN5eY1ql47cBA==} engines: {node: '>=14.9'} @@ -6473,8 +6317,8 @@ packages: engines: {node: '>=6'} dev: true - /terser/5.15.1: - resolution: {integrity: sha512-K1faMUvpm/FBxjBXud0LWVAGxmvoPbZbfTCYbSgaaYQaIXI3/TdI7a7ZGA73Zrou6Q8Zmz3oeUTsp/dj+ag2Xw==} + /terser/5.16.1: + resolution: {integrity: sha512-xvQfyfA1ayT0qdK47zskQgRZeWLoOQ8JQ6mIgRGVNwZKdQMU+5FkCBjmv4QjcrTzyZquRw2FVtlJSRUmMKQslw==} engines: {node: '>=10'} hasBin: true dependencies: @@ -6771,20 +6615,6 @@ packages: spdx-expression-parse: 3.0.1 dev: false - /vite-plugin-html/2.1.2_vite@4.0.3: - resolution: {integrity: sha512-7HXkL6n7M2qDEaUV4Vnz8yM2glW4gV36d5HSBIM5gOoAG1PkuQb4Vv9FTPgPiQxq4sPRf/6IgABX0MeLVW+CyQ==} - peerDependencies: - vite: '>=2.0.0' - dependencies: - '@rollup/pluginutils': 4.2.1 - dotenv: 10.0.0 - dotenv-expand: 5.1.0 - ejs: 3.1.8 - fs-extra: 10.1.0 - html-minifier-terser: 6.1.0 - vite: 4.0.3_less@4.1.3 - dev: false - /vite-plugin-md/0.11.9_vite@4.0.3: resolution: {integrity: sha512-0uD2BPIct3FbEA1hAm56hlrBByEn542HTsS/FoWf33lJIgijVBDDV6FE12ud0SHS6sculITKliF2ntog2kiHmQ==} peerDependencies: @@ -6795,10 +6625,10 @@ packages: '@types/markdown-it': 12.2.3 gray-matter: 4.0.3 markdown-it: 12.3.2 - vite: 4.0.3_less@4.1.3 + vite: 4.0.3_less@4.1.3+terser@5.16.1 dev: false - /vite/4.0.3_less@4.1.3: + /vite/4.0.3_less@4.1.3+terser@5.16.1: resolution: {integrity: sha512-HvuNv1RdE7deIfQb8mPk51UKjqptO/4RXZ5yXSAvurd5xOckwS/gg8h9Tky3uSbnjYTgUm0hVCet1cyhKd73ZA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -6828,6 +6658,7 @@ packages: postcss: 8.4.20 resolve: 1.22.1 rollup: 3.8.1 + terser: 5.16.1 optionalDependencies: fsevents: 2.3.2 dev: false