Skip to content

Instantly share code, notes, and snippets.

View feedthejim's full-sized avatar
✌️

Jimmy Lai feedthejim

✌️
View GitHub Profile
@feedthejim
feedthejim / offline-navigations-review-guide.md
Last active May 8, 2026 23:29
Offline navigations compressed 13-PR review guide

Offline Navigations Review Guide

Status: compressed 13-PR review guide Audience: reviewers of the offline navigations PR stack Published gist: https://gist.github.com/feedthejim/b3d9fe26a7c05655fd57adcce371b93d

This guide is the human map for the compressed offline navigations stack. The resume router for future agents is .private-investigation/offline-navigations-resume.md.

import { Worker } from 'worker_threads'
import path from 'path'
import chalk from 'next/dist/compiled/chalk'
let worker: any
function prettyPrint(
node: any,
distDir: string,
prefix = '',
@feedthejim
feedthejim / import-timing-plugin.js
Created April 10, 2023 20:47
Webpack Import timing plugin
const { ConcatSource } = require('webpack-sources')
class ImportTimingPlugin {
constructor(options = {}) {
this.options = options
}
apply(compiler) {
compiler.hooks.compilation.tap('ImportTimingPlugin', (compilation) => {
compilation.hooks.processAssets.tap(
{
"presets": [
[
"@babel/preset-env",
{
"modules": false,
"targets": {
"browsers": "ie >= 11"
}
}