Closed montalvomiguelo closed 1 year ago
It seems like the problem is that we are trying to load entrypoints via inject, which is not meant for that. With that approach, esbuild does not know how to handle shared dependencies and output them in the correct order @fleveillee
Plus esbuild does not generate a bundle from multiple entries out of the box.
Alternate solutions
cc @justinbansal
Build js files do not handle dependencies properly when running archie build (collection).
Input vendors/cookie.js is imported from multiple sections/snippets
Output next.js will output:
We need the next.js bundle to handle script dependencies correctly.