Skip to content

Commit e1e7d98

Browse files
Yann Lojewskiy4nnL
authored andcommitted
fix(build): export default library name
Signed-off-by: Yann Lojewski <[email protected]>
1 parent 10f76ea commit e1e7d98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/apps/builder/.config/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
88
module.exports = merge(baseConfig, {
99
entry: {
1010
'oui': [
11-
'./src/oui.js',
1211
'./src/oui.less',
12+
'./src/oui.js',
1313
],
1414
'oui-flags': [
1515
'./src/oui-flags.less',
@@ -22,6 +22,7 @@ module.exports = merge(baseConfig, {
2222
filename: '[name].js',
2323
library: 'oui',
2424
libraryTarget: 'umd',
25+
libraryExport: 'default',
2526
path: path.resolve('.', 'dist', 'js'),
2627
// libraryTarget: 'umd',
2728
},

0 commit comments

Comments
 (0)