From 7601d774b08785114d946defe92e687dc6072ed6 Mon Sep 17 00:00:00 2001 From: Pat O'Neill Date: Wed, 23 Aug 2017 14:25:09 -0400 Subject: [PATCH] fix: Explicitly set global/document and global/window as external for module builds to avoid warnings. --- generators/app/templates/scripts/_modules.rollup.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/generators/app/templates/scripts/_modules.rollup.config.js b/generators/app/templates/scripts/_modules.rollup.config.js index 8791e204..c2a751b9 100644 --- a/generators/app/templates/scripts/_modules.rollup.config.js +++ b/generators/app/templates/scripts/_modules.rollup.config.js @@ -11,7 +11,12 @@ import json from 'rollup-plugin-json'; export default { moduleName: '<%= moduleName %>', entry: 'src/plugin.js', - external: ['video.js', 'global'], + external: [ + 'global', + 'global/document', + 'global/window', + 'video.js' + ], globals: { 'video.js': 'videojs' },