Skip to content

(v1) Consolidate Vite/Bun plugin plumbing into @arkenv/build #1331

Description

@yamcodes

Summary

Consolidate the Vite/Bun plugins' build-time plumbing into @arkenv/build (ADR 0009), which Next/Nuxt already consume but the plugins currently duplicate.

Scope

Constraints

  • @arkenv/build stays a published, internal-only package (no private workspace deps — ADR 0009).
  • Core arkenv / @arkenv/core remains zero-dependency and edge-compatible; no Node-specific code leaks into runtime packages.
  • Generators stay framework-parameterized — no Next-specific assumptions baked into shared code.

Acceptance criteria

  • Vite and Bun plugins depend on @arkenv/build for layout resolution, key extraction, and watching.
  • No duplicated validate/filter/inject logic remains between the two plugins.
  • Next/Nuxt continue passing their existing test suites against the extended @arkenv/build.

Landing

v1 branch only — see ADR 0015 landing strategy. Coordinates with #1328 / #1329 / #1330. Part of #1105 (ADR: #1326).

Metadata

Metadata

Assignees

No one assigned

    Labels

    @arkenv/bun-pluginIssues or Pull Requests involving the Bun plugin for ArkEnv@arkenv/vite-pluginIssues or Pull Requests involving the Vite plugin for ArkEnvready for agentFully specified, ready for immediate implementationrefactorA change to the codebase that's neither a bug fix nor added functionality

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions