diff --git a/examples/browser-repl/js/app.js b/examples/browser-repl/js/app.js new file mode 100644 index 00000000..2839ecdc --- /dev/null +++ b/examples/browser-repl/js/app.js @@ -0,0 +1,7 @@ +var squint_core = await import('squint-cljs/core.js'); +globalThis.user = globalThis.user || {}; +globalThis.myapp = globalThis.myapp || {}; +globalThis.myapp.foobar = function () { +return 4; +}; +export const foobar = myapp.foobar; \ No newline at end of file diff --git a/examples/browser-repl/js/myapp.js b/examples/browser-repl/js/myapp.js new file mode 100644 index 00000000..f97a0bd6 --- /dev/null +++ b/examples/browser-repl/js/myapp.js @@ -0,0 +1,7 @@ +var squint_core = await import('squint-cljs/core.js'); +globalThis.user = globalThis.user || {}; +globalThis.myapp = globalThis.myapp || {}; +globalThis.myapp.foobar = function () { +return 5; +}; +export const foobar = myapp.foobar; \ No newline at end of file diff --git a/examples/browser-repl/src/myapp.cljs b/examples/browser-repl/src/myapp.cljs new file mode 100644 index 00000000..d6f8ec09 --- /dev/null +++ b/examples/browser-repl/src/myapp.cljs @@ -0,0 +1,4 @@ +(ns myapp) + +(defn foobar [] + 5)