aspect-build / aspect-build/rules_js

[FR]: Allow setting vite-node as node_toolchain

Open
#2,038 1 comment 0 reactions 0 assignees View on GitHub
enhancement need: investigation
Dominant language
Starlark
Stars
378
Forks
183
Avg merge
1d 9h
Merged PRs (30d)
32

Description

### What is the current behavior?

Difficult or no examples on how to swap node with something like vite-node

### Describe the feature

Trying to add vite-node as the node toolchain.
Smallest repro I could make:
https://github.com/pat-trunk-io/vite-note-rules-js

I would like to get to a point where running:
```
bazel run //src:test
```

would invoke vite-node as the node equivalent, which would then call node with the patched_fs node of rules_js

Contributor guide

Open the contributing guide

Research direction

Start with the linked smallest reproduction, pat-trunk-io/vite-note-rules-js, and inspect how it attempts to configure vite-node as the node toolchain. Run `bazel run //src:test` to establish the current behavior; done means the command invokes vite-node as the node equivalent and allows it to call node with rules_js's patched_fs node.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, vite
Domain
build-system, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.