mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
include globals in rollup config.
This commit is contained in:
parent
fa28f2c6ee
commit
ec1e0c63f4
@ -11,6 +11,12 @@ export default {
|
|||||||
output: {
|
output: {
|
||||||
name: 'NekoClient',
|
name: 'NekoClient',
|
||||||
exports: 'named',
|
exports: 'named',
|
||||||
|
globals: {
|
||||||
|
"vue": "Vue",
|
||||||
|
"vue-property-decorator": "VueClassComponent",
|
||||||
|
"vue-class-component": "VueClassComponent",
|
||||||
|
"axios": "axios",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
typescript({
|
typescript({
|
||||||
@ -25,11 +31,18 @@ export default {
|
|||||||
{ find:/^@\/(.+)/, replacement: './$1' }
|
{ find:/^@\/(.+)/, replacement: './$1' }
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
commonjs(),
|
commonjs({
|
||||||
|
include: 'node_modules/**',
|
||||||
|
}),
|
||||||
autoExternal(),
|
autoExternal(),
|
||||||
buble({
|
buble({
|
||||||
objectAssign: 'Object.assign',
|
objectAssign: 'Object.assign',
|
||||||
}),
|
}),
|
||||||
terser(),
|
terser(),
|
||||||
],
|
],
|
||||||
|
external: [
|
||||||
|
"vue",
|
||||||
|
"vue-class-component",
|
||||||
|
"axios"
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user