Closed borkdude closed 1 year ago
@robobun
import { compileString } from 'cherry-cljs@0.0.0-alpha.60';
import { writeFileSync } from 'fs';
const code = compileString(`
(defn foo [^:js {:keys [x]}] x)
`);
writeFileSync('out.js', code);
const fooModule = await import('./out.js');
console.log(fooModule.foo({x: "Hello world!"}));
@borkdude here you go!
1 | import { compileString } from 'cherry-cljs@0.0.0-alpha.60';
3 |
^
TypeError: compileString is not a function. (In 'compileString(`
at /tmp/bun-JVPOeM/index.js:4:13
Ran using the latest build of Bun, an all-in-one JavaScript runtime.
@robobun
import { compileString } from 'cherry-cljs@0.0.0-alpha.60';
import { writeFileSync } from 'fs';
const code = compileString(`
(defn foo [^:js {:keys [x]}] x)
`);
writeFileSync('out.js', code);
const fooModule = await import('./out.js');
console.log(fooModule.foo({x: "Hello world!"}));
@borkdude here you go!
1 | import { compileString } from 'cherry-cljs@0.0.0-alpha.60';
2 | import { writeFileSync } from 'fs';
4 |
compileString(`
^
TypeError: compileString is not a function. (In 'compileString(`
(defn foo [^:js {:keys [x]}] x)
`)', 'compileString' is undefined)
at /tmp/bun-4Ssilw/index.js:4:13
Ran using the latest build of Bun, an all-in-one JavaScript runtime.
First time didn't work due to missing version