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", 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'