From 2c52651f3a52c6b2e54ca3bea5a6cc0d7dc37205 Mon Sep 17 00:00:00 2001 From: m5x5 Date: Mon, 18 May 2026 20:58:37 +0200 Subject: [PATCH 1/2] feat: route uvdsl SharedWorker + dynamic chunks under /mashlib-chunks/ solid-logic's swap to @uvdsl/solid-oidc-client-browser brings in a SharedWorker (RefreshWorker.js) for background token refresh. uvdsl constructs the worker URL via \`new URL('./RefreshWorker.js', import.meta.url)\`, which webpack handles as an asset module. By default webpack emits the worker at \`/.js\` (root), where CSS doesn't serve it. Setting \`assetModuleFilename\` and \`chunkFilename\` routes both the worker asset and solid-panes' dynamic-import chunks into \`/mashlib-chunks/\`, where css-mashlib's matching StaticAssetEntry can serve them. Refs SolidOS/solid-logic#274 Co-Authored-By: Claude Opus 4.7 (1M context) --- package.json | 1 + webpack.config.mjs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/package.json b/package.json index 91296747..c194dc2c 100644 --- a/package.json +++ b/package.json @@ -54,6 +54,7 @@ }, "homepage": "https://github.com/solidos/mashlib", "dependencies": { + "@uvdsl/solid-oidc-client-browser": "^0.2.2", "pane-registry": "^3.1.1", "rdflib": "^2.3.8", "solid-logic": "^4.0.7", diff --git a/webpack.config.mjs b/webpack.config.mjs index a0de7e6d..6db39ee6 100644 --- a/webpack.config.mjs +++ b/webpack.config.mjs @@ -66,6 +66,11 @@ function createCommonConfig (resolutionMode) { path: path.resolve(process.cwd(), 'dist'), // Use /mashlib/dist/ for GitHub Pages, / for localhost publicPath: process.env.PUBLIC_PATH || '/', + chunkFilename: 'mashlib-chunks/[contenthash].js', + // Worker scripts emitted via `new Worker(new URL('./x.js', import.meta.url))` + // are output as asset modules — direct them into /mashlib-chunks/ too so + // the CSS folder route serves them. + assetModuleFilename: 'mashlib-chunks/[hash][ext][query]', library: { name: 'Mashlib', type: 'umd' From 376b8c9d3ce0ab6adceb09a340b26eab4c77f74d Mon Sep 17 00:00:00 2001 From: m5x5 Date: Mon, 18 May 2026 21:04:56 +0200 Subject: [PATCH 2/2] chore: regenerate package-lock.json for @uvdsl dep --- package-lock.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package-lock.json b/package-lock.json index 75faded7..406b251b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "2.2.0", "license": "MIT", "dependencies": { + "@uvdsl/solid-oidc-client-browser": "^0.2.2", "pane-registry": "^3.1.1", "rdflib": "^2.3.8", "solid-logic": "^4.0.7", @@ -3080,6 +3081,15 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@uvdsl/solid-oidc-client-browser": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/@uvdsl/solid-oidc-client-browser/-/solid-oidc-client-browser-0.2.2.tgz", + "integrity": "sha512-JhcfSPu+eVyPMl2Dz46jq9ZHZwfZSqzCrQiHkvFZyam9ZEGXmLF1QJs4O+MddiEJaF5rVeEPd20YWprp5drLKw==", + "license": "MIT", + "dependencies": { + "jose": "^5.9.6" + } + }, "node_modules/@webassemblyjs/ast": { "version": "1.14.1", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.14.1.tgz",