File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed
Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 1+ /** @module Interface repl:api/host-state-plugin **/
2+ export function getReplVar ( key : string ) : string | undefined ;
Original file line number Diff line number Diff line change 11// world repl:api/plugin-api
2+ export type * as ReplApiHostStatePlugin from "./interfaces/repl-api-host-state-plugin.js" ; // import repl:api/host-state-plugin
23export type * as ReplApiHttpClient from "./interfaces/repl-api-http-client.js" ; // import repl:api/http-client
34export type * as ReplApiTransport from "./interfaces/repl-api-transport.js" ; // import repl:api/transport
45export * as plugin from "./interfaces/repl-api-plugin.js" ; // export repl:api/plugin
Original file line number Diff line number Diff line change 1+ import { getReplVars } from "./host-state" ;
2+
3+ export function getReplVar ( key : string ) : string | undefined {
4+ return getReplVars ( ) . find ( ( replVar ) => replVar . key === key ) ?. value ;
5+ }
Original file line number Diff line number Diff line change 2424 "noUncheckedSideEffectImports" : true ,
2525 "paths" : {
2626 "repl:api/host-state" : [" ./src/wasm/host/host-state.ts" ],
27- "repl:api/http-client" : [" ./src/wasm/host/http-client.ts" ]
27+ "repl:api/http-client" : [" ./src/wasm/host/http-client.ts" ],
28+ "repl:api/host-state-plugin" : [" ./src/wasm/host/host-state-plugin.ts" ]
2829 }
2930 },
3031 "include" : [" src" , " clis" ]
Original file line number Diff line number Diff line change 1+ import path from "node:path" ;
12import tailwindcss from "@tailwindcss/vite" ;
23import react from "@vitejs/plugin-react" ;
3- import path from "path" ;
44import { defineConfig } from "vite" ;
55
66// https://vite.dev/config/
@@ -16,6 +16,10 @@ export default defineConfig({
1616 __dirname ,
1717 "./src/wasm/host/host-state.ts" ,
1818 ) ,
19+ "repl:api/host-state-plugin" : path . resolve (
20+ __dirname ,
21+ "./src/wasm/host/host-state-plugin.ts" ,
22+ ) ,
1923 } ,
2024 } ,
2125 base : "/webassembly-component-model-experiments/" ,
You can’t perform that action at this time.
0 commit comments