2020-11-05 23:56:26 +13:00
|
|
|
import typescript from 'rollup-plugin-typescript2'
|
|
|
|
import vue from 'rollup-plugin-vue'
|
|
|
|
import alias from '@rollup/plugin-alias'
|
|
|
|
import commonjs from '@rollup/plugin-commonjs'
|
|
|
|
import autoExternal from 'rollup-plugin-auto-external'
|
|
|
|
import buble from '@rollup/plugin-buble'
|
|
|
|
import { terser } from 'rollup-plugin-terser'
|
|
|
|
|
|
|
|
export default {
|
|
|
|
input: 'src/wrapper.js', // Path relative to package.json
|
|
|
|
output: {
|
|
|
|
name: 'NekoClient',
|
|
|
|
exports: 'named',
|
2020-11-06 00:52:00 +13:00
|
|
|
globals: {
|
|
|
|
"vue": "Vue",
|
|
|
|
"vue-property-decorator": "VueClassComponent",
|
|
|
|
"vue-class-component": "VueClassComponent",
|
|
|
|
"axios": "axios",
|
|
|
|
},
|
2020-11-05 23:56:26 +13:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
typescript({
|
|
|
|
check: false,
|
|
|
|
}),
|
|
|
|
vue({
|
|
|
|
css: true,
|
|
|
|
compileTemplate: true,
|
|
|
|
}),
|
|
|
|
alias({
|
|
|
|
entries: [
|
|
|
|
{ find:/^@\/(.+)/, replacement: './$1' }
|
|
|
|
]
|
|
|
|
}),
|
2020-11-06 00:52:00 +13:00
|
|
|
commonjs({
|
|
|
|
include: 'node_modules/**',
|
|
|
|
}),
|
2020-11-05 23:56:26 +13:00
|
|
|
autoExternal(),
|
|
|
|
buble({
|
|
|
|
objectAssign: 'Object.assign',
|
|
|
|
}),
|
|
|
|
terser(),
|
|
|
|
],
|
2020-11-06 00:52:00 +13:00
|
|
|
external: [
|
|
|
|
"vue",
|
|
|
|
"vue-class-component",
|
|
|
|
"axios"
|
|
|
|
],
|
2020-11-05 23:56:26 +13:00
|
|
|
};
|