Skip to content

Commit

Permalink
[Metaboxes] Expose methods of containers registry
Browse files Browse the repository at this point in the history
  • Loading branch information
vvasilev- committed Mar 29, 2019
1 parent ac8b2dc commit 5908394
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/webpack.metaboxes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ const config = {
entry: {
metaboxes: './packages/metaboxes/index.js'
},
output: {
library: [ 'cf', '[name]' ],
libraryTarget: 'this'
},
externals: {
'react': [ 'cf', 'vendor', 'react' ],
'react-dom': [ 'cf', 'vendor', 'react-dom' ],
Expand Down
5 changes: 5 additions & 0 deletions packages/metaboxes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import initializeMonitors from './monitors';
import initializeContainers from './containers';
import isGutenberg from './utils/is-gutenberg';

/**
* Public API.
*/
export { registerContainerType, getContainerType } from './containers/registry';

/**
* Sets the locale data for the package type
*/
Expand Down

0 comments on commit 5908394

Please sign in to comment.