mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +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 = {
|
config.externals = {
|
||||||
vue: 'Vue'
|
vue: {
|
||||||
|
root: 'Vue',
|
||||||
|
commonjs: 'vue',
|
||||||
|
commonjs2: 'vue',
|
||||||
|
amd: 'vue'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
config.plugins = [
|
config.plugins = [
|
||||||
|
@ -7,7 +7,12 @@ delete config.devtool;
|
|||||||
config.entry = Components;
|
config.entry = Components;
|
||||||
|
|
||||||
config.externals = {
|
config.externals = {
|
||||||
vue: 'Vue'
|
vue: {
|
||||||
|
root: 'Vue',
|
||||||
|
commonjs: 'vue',
|
||||||
|
commonjs2: 'vue',
|
||||||
|
amd: 'vue'
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
config.output = {
|
config.output = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user