Skip to content

Commit

Permalink
refactor: Save bytes in the UMD module by using Rollup globals rather…
Browse files Browse the repository at this point in the history
… than bundling the global module.
  • Loading branch information
brandonocasey authored and misteroneill committed Feb 2, 2018
1 parent e0773b3 commit dc05ad0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion generators/app/templates/scripts/_umd.rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ export default {
format: 'umd'
},
external: [
'global',
'global/window',
'global/document',
'video.js'
],
globals: {
'video.js': 'videojs'
'video.js': 'videojs',
'global': 'window',
'global/window': 'window',
'global/document': 'document'
},
<% if (ie8) { -%>
legacy: true,
Expand Down

0 comments on commit dc05ad0

Please sign in to comment.