You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
In the Compact Output section on the bundling page of the docs, it gives the example like rollup...
a.js
lib.js
becomes:
How do you compile a file with multiple imports so that it has no imports or requires in the end like that example?
Been trying to figure this out for a while now and haven't found a solution and everything tried has not worked.
For more clarity...
alpha.js
bravo.js
charlie.js
combine.js
Run
npx swc ./src/combine.js
ornpx spack
actual output:
or a huge file with
__swcpack_require__
,_arrayLikeToArray
, etc...desired output (or something like this):
Is there a way to get that desired output?
Beta Was this translation helpful? Give feedback.
All reactions