Skip to content

Instantly share code, notes, and snippets.

View thepassle's full-sized avatar

Pascal Schilp thepassle

View GitHub Profile
@thepassle
thepassle / swsr.js
Last active April 23, 2024 08:17
swsr.js
import { defineConfig } from 'astro/config';
import netlify from '@astrojs/netlify';
import path from 'path';
import fs from 'fs';
import { injectManifest } from 'workbox-build';
import { build } from "esbuild";
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
import fs from "fs";
import path from "path";
import { pathToFileURL, fileURLToPath } from "url";
import { builtinModules } from "module";
import { init, parse } from "es-module-lexer";
import { moduleResolve } from "import-meta-resolve";
class ModuleGraph {
/**
* @param {string} basePath
import fs from "fs";
import path from "path";
import { pathToFileURL, fileURLToPath } from "url";
import { builtinModules } from "module";
import { init, parse } from "es-module-lexer";
import { moduleResolve } from "import-meta-resolve";
/**
* @param {string} specifier
* @returns {boolean}
import { pathToFileURL } from 'url';
import { createModuleGraph } from '@thepassle/module-graph';
import { nodeResolve } from '@rollup/plugin-node-resolve';
function createResolve(resolveOptions = {}) {
const r = nodeResolve(resolveOptions);
return {
resolve() {
return null;
{
"date": "2025-04-21T14:34:43.936Z",
"script": "Trouble Brewing",
"result": "win",
"players": [
{
"tokens": [],
"me": true,
"name": "pascal",
"id": "2bab8c99-5c33-49ea-a3e7-39085b97fe7a",
Privacy Policy for The Grim Extension
Effective Date: 29-04-2025
The Grim Extension ("the Extension") does not collect, use, or share any personal data or user information.
Data Collection
The Extension temporarily stores the following data:
Game State: Information about the current state of the game.
- Usernames: Names of the players participating in the game.
- This data is stored only temporarily for a maximum of 5 minutes to facilitate gameplay features.