Expose Tag,Button common components for premium
[PREMIUM-145]
This commit is contained in:
committed by
Veljko V
parent
bef8dfdbd6
commit
cbc4820c6a
2
assets/js/src/common/index.ts
Normal file
2
assets/js/src/common/index.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
export { default as Tag } from './tag/tag';
|
||||||
|
export { default as Button } from './button/button';
|
@ -129,6 +129,13 @@ const baseConfig = {
|
|||||||
'babel-loader',
|
'babel-loader',
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
include: path.resolve(__dirname, 'assets/js/src/common/index.ts'),
|
||||||
|
use: [
|
||||||
|
'expose-loader?' + globalPrefix + '.Common',
|
||||||
|
'babel-loader',
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
include: /Blob.js$/,
|
include: /Blob.js$/,
|
||||||
loader: 'exports-loader?window.Blob',
|
loader: 'exports-loader?window.Blob',
|
||||||
@ -195,6 +202,7 @@ const adminConfig = {
|
|||||||
'classnames',
|
'classnames',
|
||||||
'help-tooltip.jsx',
|
'help-tooltip.jsx',
|
||||||
'listing/listing.jsx',
|
'listing/listing.jsx',
|
||||||
|
'common/index.ts',
|
||||||
'newsletters/badges/stats.jsx',
|
'newsletters/badges/stats.jsx',
|
||||||
],
|
],
|
||||||
admin: 'webpack_admin_index.jsx',
|
admin: 'webpack_admin_index.jsx',
|
||||||
|
Reference in New Issue
Block a user