File tree Expand file tree Collapse file tree 3 files changed +8
-103
lines changed
js-utils-embed/js/src/tasks/build Expand file tree Collapse file tree 3 files changed +8
-103
lines changed Original file line number Diff line number Diff line change @@ -686,7 +686,14 @@ fn generate_actor_script(registry_path: String) -> String {
686686 import {{ createActorHandler }} from "@rivetkit/actor/drivers/rivet";
687687 import {{ registry }} from "{registry_path}";
688688
689- export default createActorHandler(registry);
689+ export default {{
690+ async start() {{
691+ console.log('started');
692+ const handler = createActorHandler(registry);
693+ console.log('handler', handler);
694+ await new Promise(() => {{}})
695+ }}
696+ }}
690697 "# ,
691698 )
692699}
Original file line number Diff line number Diff line change @@ -54,8 +54,6 @@ export async function build(input: Input): Promise<Output> {
5454 stdLibBrowser [ `node:${ packageName } ` ] = packagePath ;
5555 }
5656
57- console . log ( 'foo' )
58-
5957 const result = await esbuild . build ( {
6058 absWorkingDir : input . projectRoot ,
6159 entryPoints : [ input . entryPoint ] ,
@@ -69,11 +67,6 @@ export async function build(input: Input): Promise<Output> {
6967 inject : [ stdLibInject ] ,
7068 plugins : [ stdLibPlugin ( stdLibBrowser ) ] ,
7169 external : [
72- "node:*" ,
73- "node:fs" ,
74- "node:fs/promises" ,
75- "fs" ,
76- "fs/promises" ,
7770 // Wasm must be loaded as a separate file manually, cannot be bundled
7871 "*.wasm" ,
7972 "*.wasm?module" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments