diff --git a/patches/@crxjs__vite-plugin@2.0.0-beta.21.patch b/patches/@crxjs__vite-plugin@2.0.0-beta.21.patch index b2ea25c..16d3220 100644 --- a/patches/@crxjs__vite-plugin@2.0.0-beta.21.patch +++ b/patches/@crxjs__vite-plugin@2.0.0-beta.21.patch @@ -1,7 +1,16 @@ diff --git a/dist/index.mjs b/dist/index.mjs -index 5c3f6291168987c56b816428080e6f1fe9de7107..43366a0ac8e920acf0091400a2f956ef4d73ad9f 100644 +index 5c3f6291168987c56b816428080e6f1fe9de7107..a80062f831bc4206426fb8174e3fd4018201f224 100644 --- a/dist/index.mjs +++ b/dist/index.mjs +@@ -98,7 +98,7 @@ function encodeManifest(manifest) { + return `export default ${json}`; + } + function parseJsonAsset(bundle, key) { +- const asset = bundle[key]; ++ const asset = bundle[key] || bundle[`.vite/${key}`]; + if (typeof asset === "undefined") + throw new TypeError(`OutputBundle["${key}"] is undefined.`); + if (asset.type !== "asset") @@ -979,7 +979,7 @@ const pluginFileWriterPolyfill = () => { renderCrxDevScript(code, { type, id }) { if (type === "module" && id === viteClientId) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0f48c45..fad4989 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -6,7 +6,7 @@ settings: patchedDependencies: '@crxjs/vite-plugin@2.0.0-beta.21': - hash: 2oz2pdnzpwruqqpqxtauoh4aym + hash: hzhkmchs7idsheim65fbb52a3q path: patches/@crxjs__vite-plugin@2.0.0-beta.21.patch dependencies: @@ -116,7 +116,7 @@ dependencies: devDependencies: '@crxjs/vite-plugin': specifier: ^2.0.0-beta.21 - version: 2.0.0-beta.21(patch_hash=2oz2pdnzpwruqqpqxtauoh4aym) + version: 2.0.0-beta.21(patch_hash=hzhkmchs7idsheim65fbb52a3q) '@testing-library/jest-dom': specifier: ^6.2.0 version: 6.2.0(@types/jest@29.5.11)(jest@29.7.0) @@ -743,7 +743,7 @@ packages: resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} dev: true - /@crxjs/vite-plugin@2.0.0-beta.21(patch_hash=2oz2pdnzpwruqqpqxtauoh4aym): + /@crxjs/vite-plugin@2.0.0-beta.21(patch_hash=hzhkmchs7idsheim65fbb52a3q): resolution: {integrity: sha512-kSXgHHqCXASqJ8NmY94+KLGVwdtkJ0E7KsRQ+vbMpRliJ5ze0xnSk0l41p4txlUysmEoqaeo4Xb7rEFdcU2zjQ==} dependencies: '@rollup/pluginutils': 4.2.1