Skip to content

Migrate runtime to Bun and normalize module specifiers (.js/.jsx), add Bun preload plugin#54

Draft
kireerik wants to merge 1 commit into
mainfrom
codex/implement-project-using-bun
Draft

Migrate runtime to Bun and normalize module specifiers (.js/.jsx), add Bun preload plugin#54
kireerik wants to merge 1 commit into
mainfrom
codex/implement-project-using-bun

Conversation

@kireerik

@kireerik kireerik commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Move the project to the Bun runtime and fix import resolution for extensionless and JSX files.
  • Normalize module specifiers by adding explicit .js/.jsx extensions to ensure consistent loading across Bun.
  • Provide a Bun plugin to handle project aliasing and on-the-fly JSX->JS transforms for SolidJS.

Description

  • Add a Bun preload plugin at index/bun/preload.js that implements alias resolution for #@/, ##/, and ##@/ and transforms .jsx files to JS using @babel/core with the solid preset.
  • Update package.json to use Bun-based scripts, adjust the imports layout and convert script commands to bun/bunx invocations.
  • Normalize imports across the codebase by appending .js/.jsx to many import specifiers and update internal relative imports to use proper paths (for example importAll, page, main, icons, style and SolidJS template imports).
  • Replace extensionless resource imports with explicit files (e.g. placeholder -> placeholder.png, .js suffix on asset files) and convert some dynamic loading to await import with import.meta.url where appropriate.
  • Improve importAll to resolve files robustly using existsSync and fileURLToPath and make it async, and update various modules (icons, resume pages, sections) to use the new import conventions.
  • Make PDF generation robust by handling chrome-finder failures gracefully and early-returning if no Chrome executable is found.
  • Update readme and docs to reference Bun and Bun-based commands, and add a jsconfig.json for JSX settings.

Testing

  • No automated tests were included or executed as part of this change.

Codex Task

@sonarqubecloud

sonarqubecloud Bot commented Mar 1, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant