Skip to content

ruiconti/mini-swc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mini-swc

A toy ES bundler & builder built w/ Rust. Its made entirely for fun, in an attempt to better understand how building and bundling works. It is also a playground for learning Rust.

This project has nothing to do with swc besides greatly relying on the amazing work people are doing there.

Running

It is assumed that you do have Rust toolkit already set-up.

cargo run $PATH_ENTRYPOINT $PATH_NODE_MODULES

What does it do?

  • Parse a ES and TS module
  • Build AST (thanks to swc)
  • Build a (loosely structured) dependency graph
  • Bundle in one script file

About

A toy-ish ES bundler.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages