-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
Fixes #427, #556 use correct sourceType
when parsing bundles
#649
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign the CLA please 🥰
Done 😀 |
Thanks! I wonder if there is any other solution than forcing the user to change an option? Is there some way we could infer whethet the source content is a module and not a script? I'd rather avoid adding more options to support something which should work out-of-the-box. |
Agreed, but not sure how to detect that. Ideas? |
Each asset has |
Oh that's nice! So the information coming from stats JSON should definitely be used here over a global option. The first change could be to only change the |
@eamodio Do you want to finish it, thank you? |
70a2f00
to
a51ffe6
Compare
Updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I think this direction looks safe and seems to be backwards-compatible.
Can you modify the PR title, description and README.md to describe what has now changed?
For example, something like this:
"Parse bundles as ES modules based on stats JSON information"
sourceType
when parsing bundles
@valscion Updated the title & description, but not sure what you wanted added to the README as there isn't any new options or anything. But feel free to edit this PR as you see fit. |
Ah sorry, I meant the changelog! My bad. |
a51ffe6
to
9e3558e
Compare
Updated -- hopefully this is ready now |
Can you avoid changing the formatting on all rows in the changelog? The diff there should be minimal. Thank you for your patience with this PR. I'm mostly reviewing this on my phone so I can't easily modify the changes myself. |
9e3558e
to
a0199c2
Compare
Ugh, sorry, damn auto-formatter. Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
Refs #427, #556
We are now parsing bundles as ES modules based on stats JSON information