include globals in rollup config.

This commit is contained in:
Miroslav Šedivý 2020-11-05 12:52:00 +01:00
parent fa28f2c6ee
commit ec1e0c63f4

View File

@ -11,6 +11,12 @@ export default {
output: {
name: 'NekoClient',
exports: 'named',
globals: {
"vue": "Vue",
"vue-property-decorator": "VueClassComponent",
"vue-class-component": "VueClassComponent",
"axios": "axios",
},
},
plugins: [
typescript({
@ -25,11 +31,18 @@ export default {
{ find:/^@\/(.+)/, replacement: './$1' }
]
}),
commonjs(),
commonjs({
include: 'node_modules/**',
}),
autoExternal(),
buble({
objectAssign: 'Object.assign',
}),
terser(),
],
external: [
"vue",
"vue-class-component",
"axios"
],
};