fix: component output librarayExport

This commit is contained in:
陈嘉涵 2017-07-31 10:54:56 +08:00
parent 84634bb77d
commit ad1755bffa
3 changed files with 6 additions and 6 deletions

View File

@ -24,8 +24,8 @@ config.externals = {
config.output = {
path: path.join(__dirname, '../lib'),
filename: '[name].js',
libraryTarget: 'umd',
umdNamedDefine: true
libraryExport: "default",
libraryTarget: 'umd'
};
module.exports = config;

View File

@ -115,6 +115,6 @@
"webpack": "^3.4.1",
"webpack-dev-server": "^2.6.1",
"webpack-merge": "^4.1.0",
"zan-doc": "^0.1.3"
"zan-doc": "^0.1.4"
}
}

View File

@ -8043,9 +8043,9 @@ yeast@0.1.2:
version "0.1.2"
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
zan-doc@^0.1.3:
version "0.1.3"
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.3.tgz#86dd752bedccbedb48b125c1dbaf60be0c8c0896"
zan-doc@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.4.tgz#e226a438b07ffe1a08706f6349536438fec25f36"
dependencies:
cheerio "0.22.0"
decamelize "^1.2.0"