- write some code as library
- split your code into many files
Then you can just write every file standalone, compile them all (to commonjs format), and others can use. perfect.
- manage imports using absolute path in your module (eg.
import xxx from "vs/code/workbench"
)- without requires user mock
require
call to handle absolute import path
- without requires user mock
- remove "src" or "out" from import path