Is it possible to split one javascript file to multiple files by swc?

130 Views Asked by At

I have a javascript file like this

// file demo.js
export function a(){
// TODO
}
export function b(){
// TODO
}

I want to get two files by swc

// a.js
export function a(){
// TODO
}
// b.js
export function b(){
// TODO
}
0

There are 0 best solutions below