Skip to content

WIP: Add an option to bundle NPM packages while installing#1422

Open
DavidZbarsky-at wants to merge 1 commit intoaspect-build:2.xfrom
DavidZbarsky-at:zbarsky/optimize-packages
Open

WIP: Add an option to bundle NPM packages while installing#1422
DavidZbarsky-at wants to merge 1 commit intoaspect-build:2.xfrom
DavidZbarsky-at:zbarsky/optimize-packages

Conversation

@DavidZbarsky-at
Copy link
Contributor

@DavidZbarsky-at DavidZbarsky-at commented Jan 1, 2024

I would have preferred to bundle with esbuild, but esbuild itself cannot be bundled, it must be marked external. (I even tried with esbuild-wasm). So that would complicate the setup a little bit.

@CLAassistant
Copy link

CLAassistant commented Jan 1, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@DavidZbarsky-at DavidZbarsky-at force-pushed the zbarsky/optimize-packages branch 2 times, most recently from ad173e9 to 3278d9b Compare January 1, 2024 16:31
rules_js_metadata = {}

custom_postinstalls = rctx.attr.custom_postinstall
if rctx.attr.package.startswith("@aws-sdk/client"):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was a hack, really we should check if custom_postinstalls == ["optimize_package"] or something

@DavidZbarsky-at DavidZbarsky-at force-pushed the zbarsky/optimize-packages branch 2 times, most recently from 3c41584 to 07b224b Compare January 1, 2024 16:49
@DavidZbarsky-at DavidZbarsky-at force-pushed the zbarsky/optimize-packages branch 2 times, most recently from 2201a26 to 9831ce2 Compare January 10, 2024 02:19
@DavidZbarsky-at DavidZbarsky-at force-pushed the zbarsky/optimize-packages branch from 9831ce2 to 6065fb8 Compare January 10, 2024 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants