-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(container): apply polyfill #12042
Conversation
🦋 Changeset detectedLatest commit: 7b0af08 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
0f3c8d2
to
4c4e7be
Compare
4c4e7be
to
7b0af08
Compare
@@ -0,0 +1,3 @@ | |||
import { applyPolyfills } from '../core/app/node.js'; |
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.
What's the reason for the separate file?
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.
that's because it needs to run first, even before other imports. We did that on the adapters repo as well
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.
ah yea, bundling. Annoying. The original file should probably be made a side effect though. We could have like a import "astro/polyfill";
thing. But I guess this is our last polyfills so, we don't care very much
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.
yeah that's also what i thought, probably not worth it at this point
Changes
Applies polyfill to the container API
Testing
CI should pass
Docs
N/A