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

Fix preload application package import #12964

Merged
merged 1 commit into from
Sep 30, 2023
Merged

Fix preload application package import #12964

merged 1 commit into from
Sep 30, 2023

Conversation

msujew
Copy link
Member

@msujew msujew commented Sep 30, 2023

What it does

Closes #12962

Fixes the import to use one that doesn't rely on node.js dependencies.

How to test

Confirm that the preload functionality behaves as expected.

Review checklist

Reminder for reviewers

@msujew
Copy link
Member Author

msujew commented Sep 30, 2023

@vince-fugnitto I imagine we need a 1.42.1 with this fix, the current 1.42.0 version isn't working well.

Copy link
Contributor

@planger planger left a comment

Choose a reason for hiding this comment

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

Thank you for this fix! I can confirm that preload and production build works again for browser with this fix.

I'm sorry for having introduced this issue with #12897, I didn't expect to break the preload / production build with this package level import.

To reveal such an issue in the future early, I'd suggest to run a very simple playwright test on the production mode on every change, which just checks if the application loads correctly. It'd be very easy to set up and I'd be happy to open a PR for that. WDYT?

@msujew
Copy link
Member Author

msujew commented Sep 30, 2023

I'm sorry for having introduced this issue with #12897, I didn't expect to break the preload / production build with this package level import.

All good, I know how it feels to have broken something accidentally ;)

To reveal such an issue in the future early, I'd suggest to run a very simple playwright test on the production mode on every change, which just checks if the application loads correctly. It'd be very easy to set up and I'd be happy to open a PR for that. WDYT?

I wanted to propose something similar. It's not like I had tests for the preload stuff, but I was still suprised that our tests didn't catch the issue. I'm all in for that 👍

@planger
Copy link
Contributor

planger commented Sep 30, 2023

All good, I know how it feels to have broken something accidentally ;)

Thank you! :-)

I wanted to propose something similar. It's not like I had tests for the preload stuff, but I was still suprised that our tests didn't catch the issue. I'm all in for that 👍

Great, I'll open a PR in the next 1-2 days!
It'd be good to at least have a very simple smoke test for the production build, which currently doesn't seem to be verified at all.

@msujew msujew merged commit ab4627e into master Sep 30, 2023
14 checks passed
@msujew msujew deleted the msujew/fix-preload branch September 30, 2023 20:01
@github-actions github-actions bot added this to the 1.43.0 milestone Sep 30, 2023
@planger
Copy link
Contributor

planger commented Sep 30, 2023

For future references: I've opened #12965 to add a smoke test for the production build

@vince-fugnitto
Copy link
Member

@vince-fugnitto I imagine we need a 1.42.1 with this fix, the current 1.42.0 version isn't working well.

Sounds good, we can mention it during the dev meeting (tomorrow) and perform the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Cannot GET /bundle.js with browser production build
3 participants