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 = { config.output = {
path: path.join(__dirname, '../lib'), path: path.join(__dirname, '../lib'),
filename: '[name].js', filename: '[name].js',
libraryTarget: 'umd', libraryExport: "default",
umdNamedDefine: true libraryTarget: 'umd'
}; };
module.exports = config; module.exports = config;

View File

@ -115,6 +115,6 @@
"webpack": "^3.4.1", "webpack": "^3.4.1",
"webpack-dev-server": "^2.6.1", "webpack-dev-server": "^2.6.1",
"webpack-merge": "^4.1.0", "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" version "0.1.2"
resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419" resolved "https://registry.yarnpkg.com/yeast/-/yeast-0.1.2.tgz#008e06d8094320c372dbc2f8ed76a0ca6c8ac419"
zan-doc@^0.1.3: zan-doc@^0.1.4:
version "0.1.3" version "0.1.4"
resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.3.tgz#86dd752bedccbedb48b125c1dbaf60be0c8c0896" resolved "https://registry.yarnpkg.com/zan-doc/-/zan-doc-0.1.4.tgz#e226a438b07ffe1a08706f6349536438fec25f36"
dependencies: dependencies:
cheerio "0.22.0" cheerio "0.22.0"
decamelize "^1.2.0" decamelize "^1.2.0"