I was working on #1557 and noticed that even though word-count.js was added as a dependency, it was not available at window.wp.utils. The entire object is being overridden by the following portion of webpack.config.js
const entryPointNames = [
'element',
'i18n',
'components',
'utils',
'blocks',
'date',
'editor',
]
entryPointNames.forEach( entryPointName => {
externals[ entryPointName ] = {
'this': [ 'wp', entryPointName ],
};
} );
Essentially, any items in entryPointNames will be added to thewp object and override anything already exisiting with the same name.
Can we namespace this to wp-gb or something similar?
I was working on #1557 and noticed that even though
word-count.jswas added as a dependency, it was not available atwindow.wp.utils. The entire object is being overridden by the following portion ofwebpack.config.jsEssentially, any items in entryPointNames will be added to the
wpobject and override anything already exisiting with the same name.Can we namespace this to
wp-gbor something similar?