-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Webpack build process is overridding wp.utils #1569
Comments
I've added a PR for this #1571. The approach I took was to rename the |
See previous discussion around #940 (comment):
|
@nylen thanks for your support on this! I have put together a PR for the Word Count feature ( #1624 ) and am running into an issue where WordCounter is not available when the component initializes as it is loaded after Gutenberg. I have accommodated for that in the component but it would be better if the core items were loaded first. However, this puts us back to the issue of the namespace being overridden when Gutenberg loads. We could address this by changing the namespace in Gutenberg from |
I think the |
I was working on #1557 and noticed that even though
word-count.js
was added as a dependency, it was not available atwindow.wp.utils
. The entire object is being overridden by the following portion ofwebpack.config.js
Essentially, any items in entryPointNames will be added to the
wp
object and override anything already exisiting with the same name.Can we namespace this to
wp-gb
or something similar?The text was updated successfully, but these errors were encountered: