Skip to content
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(@angular-devkit/build-angular): add externalDependencies to the esbuild browser builder #23390

Merged
merged 3 commits into from
Jun 21, 2022

Conversation

alan-agius4
Copy link
Collaborator

@alan-agius4 alan-agius4 commented Jun 17, 2022

This commit add a new externalDependencies option to the experimental browser builder.

Dependencies listed in this option will not be included in the final bundle, instead the user would need to provide them at runtime using import maps or another method.

Closes #23322

@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Jun 17, 2022
@alan-agius4 alan-agius4 requested a review from clydin June 17, 2022 10:07
@@ -0,0 +1,542 @@
{
Copy link
Collaborator Author

@alan-agius4 alan-agius4 Jun 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: while technically we could use allOf ex:

{
  "allOf": [
    {
      "properties": {
        "externalDependencies": {...}
      }
    },
    { "$ref": "../browser/schema.json" }
  ]
}

quicktype doesn't merge this properly. See: glideapps/quicktype#1840

@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 17, 2022
@alan-agius4 alan-agius4 force-pushed the feat-esbuild-external branch from a75dceb to 96a5617 Compare June 17, 2022 14:24
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Jun 17, 2022
@alan-agius4 alan-agius4 force-pushed the feat-esbuild-external branch from 96a5617 to a9a25bc Compare June 17, 2022 14:46
This commit adds browser-esbuild infra.
…e esbuild browser builder

This commit add a new `externalDependencies` option to the experimental browser builder.

Dependencies listed in this option will not be included in the final bundle, instead the user would need to provide them at runtime using import maps or another method.

Closes angular#23322
@alan-agius4 alan-agius4 force-pushed the feat-esbuild-external branch from a9a25bc to 80d76ac Compare June 17, 2022 15:57
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jun 21, 2022
@dgp1130 dgp1130 merged commit 3884b86 into angular:main Jun 21, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 22, 2022
@alan-agius4 alan-agius4 deleted the feat-esbuild-external branch June 9, 2023 15:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

support for providing esbuild options
3 participants