Skip to content

Feature Request: Add Bun runtime support as alternative to Node.js #174

@AugustoAmaral

Description

@AugustoAmaral

Feature Request: Add Bun runtime support as an alternative to Node.js

Summary

Add official support for Bun as an alternative JavaScript runtime for building Obsidian plugins.

Motivation

  • I already have Bun installed, but not Node

Proposed Changes

Minimal modifications to enable Bun support:

  1. package.json: Update scripts (dev, build) to enable the possibility to use Bun instead of Node
  2. .gitignore: Include bun.lockb.
  3. README.md / AGENTS.md: Document Bun as an alternative option

Implementation

I'm going to prepare a PR with these changes: #172

I'm also building a real plugin using this Bun-enabled template. Will report results here.

Notes

  • This should not replace Node.js - it's purely additive
  • All existing documentation and workflows remain valid, although the idea is to document the possibility of using Bun instead of node
  • Developers can choose whichever runtime they prefer
  • The Obsidian API is unaffected since it runs in Electron, not Node/Bun

I would like to hear the team's thoughts on this! Happy to adjust the approach based on feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions