Skip to content

borkdude/bun-squint-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bun-squint-loader

This is a demo of a loader for bun which invokes the squint-cljs compiler.

Run bun index.js:

import { the_number } from "./calc.cljs";
console.log('hello, (+ 1 2 3) => ', the_number );
$ bun index.js

The output will be:

hello, (+ 1 2 3) => 6

The number 6 is calculated from a .cljs file:

$ cat calc.cljs
(def the-number (+ 1 2 3))

To build/bundle/minify, run bun build.js. This will yield an index.js file in dist which is smaller than 100 bytes!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published