From 5a13e90574a014edadb9f932a6038c4bcd733a8d Mon Sep 17 00:00:00 2001 From: Brandon Casey <2381475+brandonocasey@users.noreply.github.com> Date: Tue, 1 Dec 2020 11:17:08 -0500 Subject: [PATCH] chore: move unit test build right below main for faster watch (#6953) --- rollup.config.js | 49 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 7ace8572bb..5f13b54f2b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -130,6 +130,30 @@ export default cliargs => [ onwarn, watch }, + { + input: 'test/unit/**/*.test.js', + output: { + format: 'iife', + name: 'videojsTests', + file: 'test/dist/bundle.js', + globals: globals.test + }, + external: externals.test, + plugins: [ + multiEntry({exports: false}), + alias({ + 'video.js': path.resolve(__dirname, './src/js/video.js') + }), + primedResolve, + json(), + stub(), + primedCjs, + primedBabel, + cliargs.progress !== false ? progress() : {} + ], + onwarn, + watch + }, // es, cjs { input: 'src/js/index.js', @@ -251,30 +275,5 @@ export default cliargs => [ ], onwarn, watch - }, - { - input: 'test/unit/**/*.test.js', - output: { - format: 'iife', - name: 'videojsTests', - file: 'test/dist/bundle.js', - globals: globals.test - }, - external: externals.test, - plugins: [ - multiEntry({exports: false}), - alias({ - 'video.js': path.resolve(__dirname, './src/js/video.js') - }), - primedResolve, - json(), - stub(), - primedCjs, - primedBabel, - cliargs.progress !== false ? progress() : {} - ], - onwarn, - watch } - ];