Closed tjjfvi closed 1 year ago
One big change: to properly support CJS, we need to emit only CJS, as only one instance of Capi should ever be loaded.
Additionally, this has a custom require-hook & esm-loader setup that only invokes ts-node if resolving a nets.ts.
nets.ts
Resolves #1112
@ryanleecode Can you confirm this works in Vite / misc workspace setups?
One big change: to properly support CJS, we need to emit only CJS, as only one instance of Capi should ever be loaded.
Additionally, this has a custom require-hook & esm-loader setup that only invokes ts-node if resolving a
nets.ts
.Resolves #1112