mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08: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:
parent
1333b8d7d5
commit
242c06ecf4
@ -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 = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user