-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): add AMD output format support #7381
base: v2
Are you sure you want to change the base?
feat(core): add AMD output format support #7381
Conversation
|
In this MR dynamic imports are not supported. I am still working on handling them properly. |
Being new to Parcel codebase I have a couple questions:
|
Thanks for working on this!
|
Thank you for review @devongovett, and for your work on Parcel! You did a huge amount of work there.
ok, I'll add test there.
ok, I'll add tests covering that as well.
That is very helpful, I'll change to use |
424a968
to
d4992c8
Compare
Hi @devongovett , @mischnic , Happy New Year! I've added tests to AMD output format implementation, so this MR is ready for final review. I was not able to find a way to create a sample repo where Parcel produces shared bundle for the 2 JS entries. Producing shared chunks works for HTML entries (like is written here), but I didn't find a way to generate shared chunks for JS entries. Thus, I was not able to test that case, although I think I covered that case by checking for empty main asset it and short-circuiting if so. I think I also need to mention |
Friendly ping 🙂 |
any news? |
7047ca9
to
7f75f50
Compare
Any news here? |
↪️ Pull Request
This PR adds a new
outputFormat
-amd
, which. will create bundle in AMD format.This is related to #7312, and most probably code in this MR will be slightly refactored later to reuse as much as it is possible for UMD support.
But in any case this is a separate feature, and deserves a separate MR.
💻 Examples
Essentially, I want this to work:
🚨 Test instructions
✔️ PR Todo