One Plugin

sootsim/vite exports sootsimPlugin(), an optional One plugin that serves the SootSim shell at /__soot on the dev server you already run.

It does not change your app code or replace your normal One workflow. It just makes a stable SootSim URL available next to the app you already start.

Usage

import { defineConfig } from 'vite'
import { sootsimPlugin } from 'sootsim/vite'
export default defineConfig({
plugins: [
// your normal One/Vite plugins
sootsimPlugin(),
],
})

Options

sootsimPlugin({
bundleUrl?: string // override the default One metro bundle URL
prefix?: string // defaults to '/__soot'
enabled?: boolean // defaults to true
})

Notes

  • use this when you want http://localhost:<port>/__soot/ to exist whenever the normal One dev server is up
  • if you do not want a plugin at all, you can still run sootsim open <port> against the same app