Bun File Types
File types and loaders supported by Bun's bundler and runtime
Install
npx skills add jarle/bun-skills --skill Bun File Typesgit clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-file-types ~/.claude/skills/Bun-File-TypesPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# File Types
> File types and loaders supported by Bun's bundler and runtime
The Bun bundler implements a set of default loaders out of the box. As a rule of thumb, the bundler and the runtime both support the same set of file types out of the box.
`.js` `.cjs` `.mjs` `.mts` `.cts` `.ts` `.tsx` `.jsx` `.css` `.json` `.jsonc` `.json5` `.toml` `.yaml` `.yml` `.txt` `.wasm` `.node` `.html` `.sh`
Bun uses the file extension to determine which built-in *loader* should be used to parse the file. Every loader has a name, such as `js`, `tsx`, or `json`. These names are used when building [plugins](/bundler/plugins) that extend Bun with custom loaders.
You can explicitly specify which loader to use using the `'type'` import attribute.
```ts theme={"theme":{"light":"github-light","dark":"dracula"}}
import my_toml from "./my_file" with { type: "toml" };
// or with dynamic imports
const { default: my_toml } = await import("./my_file", { with: { type: "toml" } });
```
***
## Built-in loaders
### `js`
**JavaScript**. Default for `.cjs` and `.mjs`.
Parses the code and applies a set of default transforms like dead-code elimination and tree shaking. Note that Bun does not attempt to down-convert syntax at the moment.
### `jsx`
**JavaScript + JSX.**. Default for `.js` and `.jsx`.Details
- Skill name
Bun File Types- Repository
- jarle/bun-skills
- Path
skills/bun-runtime-file-types/SKILL.md- License
- MIT
- Repo updated
- 24 February 2026
FAQ
What does the Bun File Types skill do?
File types and loaders supported by Bun's bundler and runtime
How do I install the Bun File Types skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun File Types. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Bun File Types popular?
It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.
Related skills
Bun Archive
9jarle/bun-skills
Create and extract tar archives with Bun's fast native implementation
Bun Auto Install
9jarle/bun-skills
Bun's automatic package installation feature for standalone script execution
Bun Bun Add
9jarle/bun-skills
Add packages to your project with Bun's fast package manager
Bun Glob
9jarle/bun-skills
Use Bun's fast native implementation of file globbing
Bun Environment Variables
9jarle/bun-skills
Read and configure environment variables in Bun, including automatic .env file support
Bun Global Cache
9jarle/bun-skills
How Bun stores and manages packages in its global cache
Browse the most popular Claude skills, all other skills, or write your own with the skills generator.