@riverscapes/common
v2.0.25
Published
Common elements to all riverscapes tools (client and server)
Downloads
323
Readme
Why is there both a dist
and a dist_esnext
folder?
The dist
folder is the output of the tsc
command. It is the transpiled code from TypeScript to JavaScript. The dist_esnext
folder is the output of the tsc --module esnext
. We need the esnext folder because vite requires ES6 modules. The dist
folder is used for the rest of the project (mostly the server side of things) which is still using CommonJS modules.
Eventually we will be able to remove the dist
folder and just use the dist_esnext
folder but we need to make sure that the rest of the project is ready for ES6 modules first.