Skip to content

Commit

Permalink
fix: Explicitly set global/document and global/window as external for…
Browse files Browse the repository at this point in the history
… module builds to avoid warnings.
  • Loading branch information
misteroneill committed Aug 23, 2017
1 parent 761bd75 commit 7601d77
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion generators/app/templates/scripts/_modules.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},
Expand Down

0 comments on commit 7601d77

Please sign in to comment.