From 049e90a12804ba131647e3730eac946f2c46a32b Mon Sep 17 00:00:00 2001 From: Zaytsev Kirill Date: Sun, 18 Oct 2020 20:20:54 +0300 Subject: [PATCH] chore: .npmignore & build config --- .npmignore | 5 +++++ build/rollup.iife.config.js | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..5c3fde1 --- /dev/null +++ b/.npmignore @@ -0,0 +1,5 @@ +.github +.gitignore +/storybook +/node_modules +/build diff --git a/build/rollup.iife.config.js b/build/rollup.iife.config.js index a0f2499..dc3517a 100644 --- a/build/rollup.iife.config.js +++ b/build/rollup.iife.config.js @@ -21,7 +21,7 @@ export default { 'vue-property-decorator': 'vuePropertyDecorator', }, }, - external: ['vue', 'vue-property-decorator'], + external: ['vue'], plugins: [ resolve({ browser: true, @@ -31,7 +31,7 @@ export default { vue({ css: true, compileTemplate: true }), alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }), commonjs(), - internal(['is-plain-object', 'nanoid/non-secure', 'is-url']), + internal(['is-plain-object', 'nanoid/non-secure', 'is-url', 'vue-property-decorator']), terser(), ] }