Skip to content

Instantly share code, notes, and snippets.

View joshuawootonn's full-sized avatar
🔨
building

Joshua Wootonn joshuawootonn

🔨
building
View GitHub Profile
@terrymun
terrymun / report-bundle-size.ts
Last active April 2, 2025 17:05
Improved appDir support for HashiCorp next bundle analysis
#!/usr/bin/env node
/* eslint-disable no-console */
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
// [2023-09-04] Edited to work with the appdir by @raphaelbadia:
// https://gist.github.com/raphaelbadia/1fbc948928378a4ce0e1ce90923263ae
stateDiagram-v2
    state "wake up" as wakeUp 
    state "make ☕" as make
    state "drink ☕" as drink
    state outOfCoffee <<choice>>

    [*] --> wakeUp
    wakeUp --> check
 check --&gt; outOfCoffee: out of coffee?