Skip to content

Instantly share code, notes, and snippets.

View sfletche's full-sized avatar

Scott Fletcher sfletche

  • Highspot
  • Portland, OR
View GitHub Profile
@sfletche
sfletche / README.md
Created May 19, 2026 20:21
Repro: @swc/core compress.passes:2 drops module-scoped object literal used as default param to {} (rspack 1.7.11 / swc 1.15.33)

Repro: compress.passes: 2 drops module-scoped object literal to {}

Minimal reproduction for an SWC minifier bug where a module-scoped const object literal used as a default parameter value is incorrectly reduced to {} when compress.passes >= 2. This breaks the runtime behavior of any code that reads properties from that default value (e.g. spec.granularities.sort(...) throws TypeError: Cannot read properties of undefined (reading 'sort')).

Versions

Use the following to skip / remove a file from being updated by git
> git update-index --skip-worktree <filename>
Use the following to see which files are currently being skipped / ignored
> git ls-files -v . | grep ^S
Use the following to revert the skip
> git update-index --no-skip-worktrree <filename>
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Portland Office Traversal",
"tags": [
"portland-office-traversal"
],
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Portland Office",
"tags": [
"portland-office-alt"
],
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"name": "Portland Office",
"tags": [
"portland-office-alt"
],
const initialState = {
pricingPlans: [],
pricingPlansWithRepayment: [],
selectedOptionIdentifier: null,
selectedPreviewOptionIdentifier: null,
error: {},
};
function reducer(state = initialState, action = {}) {
switch (action.type) {
export function showAllPlans(state = false, action = {}) {
switch (action.type) {
case TOGGLE_ALL_PLANS:
return action.showAllPlans;
default:
return state;
}
}
export function maxProjectAmounts(state = [], action = {}) {

Panda Application States

Concurrent Steps

Step

  • Record Notice Sent to Lender Date

Step

  • Verify Intended Scope of Work

Champ States

Application Phase

Application Review

Provide Project Info

Select Payment Term

Review Financing Summary

{
  "id": "80994",
  "api_version": "2.0.0",
  "created_at": "2017-05-23T18:21:43.612+00:00",
  "updated_at": "2017-05-23T18:23:04.517+00:00",
  "origination_source": "champ_superuser",
  "sponsor": {
    "identifier": "cscda",
    "name": "CSCDA"