mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
use vue in amd & commonjs, use Vue in root (#4)
* change require vue to Vue && waterfall.md * use vue in amd & commonjs, use Vue in root
This commit is contained in:
@@ -13,7 +13,12 @@ config.output = {
|
||||
};
|
||||
|
||||
config.externals = {
|
||||
vue: 'Vue'
|
||||
vue: {
|
||||
root: 'Vue',
|
||||
commonjs: 'vue',
|
||||
commonjs2: 'vue',
|
||||
amd: 'vue'
|
||||
}
|
||||
};
|
||||
|
||||
config.plugins = [
|
||||
|
@@ -7,7 +7,12 @@ delete config.devtool;
|
||||
config.entry = Components;
|
||||
|
||||
config.externals = {
|
||||
vue: 'Vue'
|
||||
vue: {
|
||||
root: 'Vue',
|
||||
commonjs: 'vue',
|
||||
commonjs2: 'vue',
|
||||
amd: 'vue'
|
||||
}
|
||||
};
|
||||
|
||||
config.output = {
|
||||
|
Reference in New Issue
Block a user