From d3701c9618b5577eabdc5b1ff0c337c1a167cac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 11 Nov 2020 00:10:14 +0100 Subject: [PATCH] improve build speed --- rollup.config.js | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index b871a392..f4324541 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -46,17 +46,6 @@ async function build(commandLineArgs) { const plugins = [ resolve(), commonjs(), - typescript({ - tsconfigOverride: { - compilerOptions: { - declaration: true, - paths: { - '@tiptap/*': ['*/src'], - }, - }, - include: null, - }, - }), vuePlugin(), babel({ babelHelpers: 'bundled', @@ -92,7 +81,20 @@ async function build(commandLineArgs) { ...Object.keys(pkg.devDependencies || {}), ...Object.keys(pkg.peerDependencies || {}), ], - plugins, + plugins: [ + ...plugins, + typescript({ + tsconfigOverride: { + compilerOptions: { + declaration: true, + paths: { + '@tiptap/*': ['*/src'], + }, + }, + include: null, + }, + }), + ], }) if (!ci) { @@ -114,6 +116,15 @@ async function build(commandLineArgs) { ], plugins: [ ...plugins, + typescript({ + tsconfigOverride: { + compilerOptions: { + paths: { + '@tiptap/*': ['*/src'], + }, + }, + }, + }), terser(), ], })