You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Importing the polyfill import '@wordpress/polyfill' should work just fine with this approach, the polyfill would be flagged as an external dependency and added to the dependencies list. We could manually do that.
A short-term enhancement would be to make the polyfill configurable in some way, whether to add it automatically to some entry points and a way of overriding that.
In the future, part of our toolchain might handle adding the polyfill when unsupported language features are encountered. I expect that is significantly more complicated than we want here.
Including the polyfill dependency all the time sounds like a sensible first step.
In the future, part of our toolchain might handle adding the polyfill when unsupported language features are encountered. I expect that is significantly more complicated than we want here.
Something like:
Enqueue would be aware of WP deps, no more disconnect!
The text was updated successfully, but these errors were encountered: