Open qpwo opened 2 years ago
If I import a function from one script into another then require.main === module is true in both so they both fully run. This is different behavior from node and ts-node.
require.main === module
https://github.com/evanw/esbuild/issues/2121
https://github.com/qpwo/esbuild-issue-2121
If I import a function from one script into another then
require.main === module
is true in both so they both fully run. This is different behavior from node and ts-node.https://github.com/evanw/esbuild/issues/2121
https://github.com/qpwo/esbuild-issue-2121