@inkandswitch/patchwork-bootloader 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/automerge-worker.js +543 -771
- package/dist/module-loader.d.ts +0 -5
- package/dist/module-loader.js +0 -6
- package/dist/service-worker.js +174 -205
- package/dist/setup.d.ts +2 -1
- package/dist/setup.js +251 -375
- package/dist/site.d.ts +17 -32
- package/dist/site.js +291 -376
- package/dist/vite/importmap-plugin.js +1 -5
- package/package.json +4 -4
- package/src/automerge-worker.ts +635 -833
- package/src/module-loader.ts +0 -6
- package/src/service-worker.ts +219 -238
- package/src/setup.ts +287 -401
- package/src/site.ts +377 -439
- package/src/vite/importmap-plugin.ts +1 -5
|
@@ -49,9 +49,6 @@ async function resolveExternal(
|
|
|
49
49
|
return resolved.id;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
/**
|
|
53
|
-
* merge the importmap option with our builtins
|
|
54
|
-
*/
|
|
55
52
|
function createImportMap(options?: PatchworkVitePluginOptions) {
|
|
56
53
|
const importmap: ImportMap = structuredClone(
|
|
57
54
|
options?.importmap ?? { imports: {}, scopes: {} }
|
|
@@ -76,7 +73,7 @@ export function importmap(options?: PatchworkVitePluginOptions): Plugin {
|
|
|
76
73
|
});
|
|
77
74
|
}
|
|
78
75
|
|
|
79
|
-
//
|
|
76
|
+
// Emitted so the service worker can fetch them
|
|
80
77
|
const automergeWasmPath = require.resolve(
|
|
81
78
|
"@automerge/automerge/automerge.wasm"
|
|
82
79
|
);
|
|
@@ -94,7 +91,6 @@ export function importmap(options?: PatchworkVitePluginOptions): Plugin {
|
|
|
94
91
|
source: readFileSync(keyhiveWasmPath),
|
|
95
92
|
});
|
|
96
93
|
|
|
97
|
-
// Emit subduction wasm so the service worker can fetch it
|
|
98
94
|
const subdWasmPath =
|
|
99
95
|
require.resolve("@automerge/automerge-subduction/wasm");
|
|
100
96
|
this.emitFile({
|