8000 feat!: switch function bundling to esbuild by ascorbic · Pull Request #490 · opennextjs/opennextjs-netlify · GitHub
[go: up one dir, main page]

Skip to content

feat!: switch function bundling to esbuild #490

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

Merged
merged 9 commits into from
Jul 16, 2021
Merged

Conversation

ascorbic
Copy link
Contributor
@ascorbic ascorbic commented Jul 6, 2021

This PR switches generated functions to use esbuild. This gives significant improvements in bundling time. This requires the latest version of the CLI, so it is a breaking change and we add a check for this.

In order to force the functions to use esbuild we switch them to be in TypeScript. This is because config mutation for bundling isn't fully supported in the CLI, and TypeScript always triggers the use of esbuild.

At the same time, I've simplified the wrapper, moving the helpers into a single file, and generating the entry point dynamically so that it includes the full import to the page.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Jul 6, 2021
@ascorbic ascorbic force-pushed the feat/esbuild-bundling branch from e42a618 to ef0e319 Compare July 7, 2021 09:11
@ascorbic ascorbic force-pushed the feat/esbuild-bundling branch from ef0e319 to 1316b77 Compare July 14, 2021 13:51
@ascorbic ascorbic marked this pull request as ready for review July 16, 2021 10:35
@ascorbic ascorbic changed the title feat: switch function bundling to esbuild feat!: switch function bundling to esbuild Jul 16, 2021
@ascorbic ascorbic requested a review from lindsaylevine July 16, 2021 10:39
Copy link
@lindsaylevine lindsaylevine left a comment

Choose a reason for hiding this comment

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

5 stars

@ascorbic ascorbic merged commit 4aff708 into main Jul 16, 2021
@ascorbic ascorbic deleted the feat/esbuild-bundling branch July 16, 2021 11:04
serhalp pushed a commit that referenced this pull request Jun 13, 2024
* chore: renamed test

* chore: handle experimental react in test fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0