diff --git a/build/rollup.config.js b/build/rollup.config.js index 5fd17aa..172ebc2 100644 --- a/build/rollup.config.js +++ b/build/rollup.config.js @@ -1,8 +1,8 @@ +import alias from '@rollup/plugin-alias' import autoExternal from 'rollup-plugin-auto-external' -import buble from '@rollup/plugin-buble' // Transpile/polyfill with reasonable browser support -import commonjs from '@rollup/plugin-commonjs' // Convert CommonJS modules to ES6 +import commonjs from '@rollup/plugin-commonjs' import { terser } from 'rollup-plugin-terser' -import typescript from '@rollup/plugin-typescript' +import typescript from 'rollup-plugin-typescript2' import vue from 'rollup-plugin-vue' // noinspection JSUnusedGlobalSymbols @@ -15,21 +15,18 @@ export default { 'is-plain-object': 'isPlainObject', 'is-url': 'isUrl', 'nanoid/non-secure': 'nanoid', + vue: 'Vue', + 'vue-property-decorator': 'vuePropertyDecorator', }, sourcemap: false, }], - external: ['nanoid/non-secure'], + external: ['nanoid/non-secure', 'vue', 'vue-property-decorator'], plugins: [ + typescript({ check: false, sourceMap: false }), + vue({ css: true, compileTemplate: true }), + alias({ entries: [{ find: /^@\/(.+)/, replacement: './$1' }] }), commonjs(), autoExternal(), - typescript({ sourceMap: false }), - vue({ - css: true, // Dynamically inject css as a