From ec1e0c63f426d170940486eedaa044c8b7e5baa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 5 Nov 2020 12:52:00 +0100 Subject: [PATCH] include globals in rollup config. --- rollup.config.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index f05c833e..8e0886ce 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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" + ], };