Embed interactive Twitch player for Angular or Typescript projects

Can you keep a local copy, but something like

import Player from 'player.js'
let player = window.Twitch.Player || Player;

so if you have the latest player imported in your index.html (which you should do) it will always use the latest, if not, it uses the packaged one, that may be out of date.