diff --git a/package.json b/package.json index c946762a..2d4dfbf7 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "@commitlint/cli": "^19.7.1", "@commitlint/config-conventional": "^19.7.1", "@commitlint/types": "^19.5.0", - "@crxjs/vite-plugin": "2.0.0-beta.21", + "@crxjs/vite-plugin": "2.0.3", "@iconify-json/bi": "^1.2.2", "@iconify-json/ic": "^1.2.2", "@iconify-json/iconoir": "^1.2.7", @@ -154,7 +154,6 @@ }, "pnpm": { "patchedDependencies": { - "@crxjs/vite-plugin@2.0.0-beta.21": "patches/@crxjs__vite-plugin@2.0.0-beta.21.patch", "@unocss/vite": "patches/@unocss__vite.patch" }, "overrides": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4d594e33..a3e26225 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,9 +8,6 @@ overrides: es-module-lexer: ^1.5.4 patchedDependencies: - '@crxjs/vite-plugin@2.0.0-beta.21': - hash: 638b2575ead9e3df6bf5df962712f1fcbddf1d7ac61ce8dce0cfcc471d404a03 - path: patches/@crxjs__vite-plugin@2.0.0-beta.21.patch '@unocss/vite': hash: 9e2d2732a6e057a2ca90fba199730f252d8b4db8631b2c6ee0854fce7771bc95 path: patches/@unocss__vite.patch @@ -126,8 +123,8 @@ importers: specifier: ^19.5.0 version: 19.5.0 '@crxjs/vite-plugin': - specifier: 2.0.0-beta.21 - version: 2.0.0-beta.21(patch_hash=638b2575ead9e3df6bf5df962712f1fcbddf1d7ac61ce8dce0cfcc471d404a03) + specifier: 2.0.3 + version: 2.0.3 '@iconify-json/bi': specifier: ^1.2.2 version: 1.2.2 @@ -577,8 +574,8 @@ packages: conventional-commits-parser: optional: true - '@crxjs/vite-plugin@2.0.0-beta.21': - resolution: {integrity: sha512-kSXgHHqCXASqJ8NmY94+KLGVwdtkJ0E7KsRQ+vbMpRliJ5ze0xnSk0l41p4txlUysmEoqaeo4Xb7rEFdcU2zjQ==} + '@crxjs/vite-plugin@2.0.3': + resolution: {integrity: sha512-OfAzERiwBlLg7u/+aRExJVYlxx95IaYOSEMJpMzXcKqWPNBMlA1ppwC2nelHTIvF5LWxn5CEp6zqlHjLH9QGtg==} '@date-fns/tz@1.2.0': resolution: {integrity: sha512-LBrd7MiJZ9McsOgxqWX7AaxrDjcFVjWH/tIKJd7pnR7McaslGYOP1QmmiBXdJH/H/yLCT+rcQ7FaPBUxRGUtrg==} @@ -3063,10 +3060,6 @@ packages: confusing-browser-globals@1.0.11: resolution: {integrity: sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA==} - connect-injector@0.4.4: - resolution: {integrity: sha512-hdBG8nXop42y2gWCqOV8y1O3uVk4cIU+SoxLCPyCUKRImyPiScoNiSulpHjoktRU1BdI0UzoUdxUa87thrcmHw==} - engines: {node: '>= 0.8.0'} - consola@3.4.0: resolution: {integrity: sha512-EiPU8G6dQG0GFHNR8ljnZFki/8a+cQwEQ+7wpxdChl02Q8HXlwEZWD5lqAF8vC2sEC3Tehr8hy7vErz88LHyUA==} engines: {node: ^14.18.0 || >=16.10.0} @@ -4908,10 +4901,6 @@ packages: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} hasBin: true - magic-string@0.26.7: - resolution: {integrity: sha512-hX9XH3ziStPoPhJxLq1syWuZMxbDvGNbVchfrdCtanC7D13888bMFow61x8axrx+GfHLtVeAx2kxL7tTGRl+Ow==} - engines: {node: '>=12'} - magic-string@0.27.0: resolution: {integrity: sha512-8UnnX2PeRAPZuN12svgR9j7M1uWMovg/CEnIwIG0LFkXSJJe4PdfUGiTGl8V9bsBHFUtfVINcSyYxd7q+kx9fA==} engines: {node: '>=12'} @@ -5872,14 +5861,6 @@ packages: resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} engines: {node: '>=6'} - q@1.5.1: - resolution: {integrity: sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw==} - engines: {node: '>=0.6.0', teleport: '>=0.2.0'} - deprecated: |- - You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. - - (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) - queue-microtask@1.2.3: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} @@ -6093,8 +6074,8 @@ packages: deprecated: Rimraf versions prior to v4 are no longer supported hasBin: true - rollup@2.78.1: - resolution: {integrity: sha512-VeeCgtGi4P+o9hIg+xz4qQpRl6R401LWEXBmxYKOV4zlF82lyhgh2hTZnheFUbANE8l2A41F458iwj2vEYaXJg==} + rollup@2.79.2: + resolution: {integrity: sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==} engines: {node: '>=10.0.0'} hasBin: true @@ -6280,10 +6261,6 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} - sourcemap-codec@1.4.8: - resolution: {integrity: sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==} - deprecated: Please use @jridgewell/sourcemap-codec instead - space-separated-tokens@1.1.5: resolution: {integrity: sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==} @@ -6340,10 +6317,6 @@ packages: prettier: optional: true - stream-buffers@0.2.6: - resolution: {integrity: sha512-ZRpmWyuCdg0TtNKk8bEqvm13oQvXMmzXDsfD4cBgcx5LouborvU5pm3JMkdTP3HcszyUI08AM1dHMXA5r2g6Sg==} - engines: {node: '>= 0.3.0'} - stream-combiner2@1.1.1: resolution: {integrity: sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==} @@ -6692,9 +6665,6 @@ packages: engines: {node: '>=14.17'} hasBin: true - uberproto@1.2.0: - resolution: {integrity: sha512-pGtPAQmLwh+R9w81WVHzui1FfedpQWQpiaIIfPCwhtsBez4q6DYbJFfyXPVHPUTNFnedAvNEnkoFiLuhXIR94w==} - ufo@1.5.4: resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} @@ -7367,23 +7337,23 @@ snapshots: conventional-commits-filter: 5.0.0 conventional-commits-parser: 6.1.0 - '@crxjs/vite-plugin@2.0.0-beta.21(patch_hash=638b2575ead9e3df6bf5df962712f1fcbddf1d7ac61ce8dce0cfcc471d404a03)': + '@crxjs/vite-plugin@2.0.3': dependencies: '@rollup/pluginutils': 4.2.1 '@webcomponents/custom-elements': 1.6.0 acorn-walk: 8.3.4 cheerio: 1.0.0 - connect-injector: 0.4.4 convert-source-map: 1.9.0 debug: 4.4.0 es-module-lexer: 1.6.0 fast-glob: 3.3.3 fs-extra: 10.1.0 jsesc: 3.1.0 - magic-string: 0.26.7 + magic-string: 0.30.17 + pathe: 2.0.3 picocolors: 1.1.1 react-refresh: 0.13.0 - rollup: 2.78.1 + rollup: 2.79.2 rxjs: 7.5.7 transitivePeerDependencies: - supports-color @@ -9993,15 +9963,6 @@ snapshots: confusing-browser-globals@1.0.11: {} - connect-injector@0.4.4: - dependencies: - debug: 2.6.9 - q: 1.5.1 - stream-buffers: 0.2.6 - uberproto: 1.2.0 - transitivePeerDependencies: - - supports-color - consola@3.4.0: {} conventional-changelog-angular@7.0.0: @@ -12126,10 +12087,6 @@ snapshots: lz-string@1.5.0: {} - magic-string@0.26.7: - dependencies: - sourcemap-codec: 1.4.8 - magic-string@0.27.0: dependencies: '@jridgewell/sourcemap-codec': 1.5.0 @@ -13193,8 +13150,6 @@ snapshots: punycode@2.3.1: {} - q@1.5.1: {} - queue-microtask@1.2.3: {} randombytes@2.1.0: @@ -13490,7 +13445,7 @@ snapshots: dependencies: glob: 7.2.3 - rollup@2.78.1: + rollup@2.79.2: optionalDependencies: fsevents: 2.3.3 @@ -13754,8 +13709,6 @@ snapshots: source-map@0.6.1: {} - sourcemap-codec@1.4.8: {} - space-separated-tokens@1.1.5: {} space-separated-tokens@2.0.2: {} @@ -13807,8 +13760,6 @@ snapshots: - supports-color - utf-8-validate - stream-buffers@0.2.6: {} - stream-combiner2@1.1.1: dependencies: duplexer2: 0.1.4 @@ -14180,8 +14131,6 @@ snapshots: typescript@5.7.3: {} - uberproto@1.2.0: {} - ufo@1.5.4: {} uglify-js@3.19.3: diff --git a/vite.config.ts b/vite.config.ts index 77e83991..f190e659 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -204,6 +204,7 @@ export default defineConfig({ server: { strictPort: true, port: 5173, + cors: true, hmr: { clientPort: 5173, },