What is the difference between compiling swc
and bundling spack
and when should you use one vs other?
#5618
Unanswered
samesfahani-tuplehealth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if this is an obvious question, but I was curious to know what the difference between building an entire directory with
swc ./src -d dist
versus the following setup:spack.config.js
My best observations are that:
swc ./src -d dist
is going to compile the entire codebase in the same structure as they currently arespack
is going to look atsrc/index.ts
, traverse through the full dependency graph, concatenate everything into one output (as opposed to multiple files). As a result you have one file that is tree shaken.Is my understanding correct? A few questions:
bootstrap()
function. As a result, would my compiled output just be empty? Or will it be okay as long as I have something exported?Beta Was this translation helpful? Give feedback.
All reactions