bundle complex Compositex Node code via esbuild
pnpm install
- edit main.js. (notice the
export default
should be added. It's different from the the code in extension node editor, because it will be bundled) pnpm run build
- copy the code in
out.js
and paste in the extension node edtior.
- main.js // you node code here
- build.js // the building script
- out.js // the bundled code