Skip to content

Commit

Permalink
Fix single player imports on IE11
Browse files Browse the repository at this point in the history
Fixes #954
  • Loading branch information
cookpete committed Jul 3, 2020
1 parent 7af09da commit 0884380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pre-publish.js
Expand Up @@ -5,7 +5,7 @@ const { default: players } = require('../lib/players')
const generateSinglePlayers = async () => {
for (const { key, name } of players) {
const file = `
const { createReactPlayer } = require('./lib/ReactPlayer')
const createReactPlayer = require('./lib/ReactPlayer').createReactPlayer
const Player = require('./lib/players/${name}').default
module.exports = createReactPlayer([Player])
`
Expand Down

0 comments on commit 0884380

Please sign in to comment.