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: {
|
||||
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"
|
||||
],
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user